/* ===============
   Invoicing Page Styles
=============== */

/* der er et par ændringer ift Figma - det er bevidste valg, 
da det ser pænere ud. Det er godkendt af kunden */

main.invoicing {
    background-color: #f2f4f6;
    padding-top: 153px;
    padding-bottom: 200px;
}

section.invoicing {
    display: flex;
    margin: 106px 135px 200px 135px;
}

#expiryDate {
    width: 130px;
    margin-right: 0;
}

#cvv {
    width: 130px;
}

.invoicing h1 {
    font-size: 48px;
    font-weight: 300;
    color: #24282a;
    margin-left: 385px;
    margin-bottom: 40px;
}

h2.payment {
    font-size: 24px;
    font-weight: 500;
    line-height: 56px;
    margin-bottom: 50px;
}

.billing-container {
    width: 670px;
    height: 738px;
    margin: 50px auto;
    padding: 50px 140px 270px 120px;
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.billing-details {
    margin-bottom: 50px;
}

.detail {
    margin-bottom: 20px;
}

.detail-town {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

.detail label {
    padding-top: 50px;
}

.value {
    font-size: 24px;
    color: #000000;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 19px;
}

.order-summary {
    width: 470px;
    margin: 50px auto;
    padding: 40px;
    background-color: #ffe6e6;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item {
    margin-bottom: 20px;
}

.total {
    font-weight: 700;
}

hr {
    border: none;
    border-top: 6px solid #f9c4d2;
    margin: 20px 0;
}

.payment-overview {
    background-color: #ffe6e6;
    width: 470px;
    height: 738px;
    padding: 45px 100px;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.item,
.summary,
.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 150%;
}

.item.item--last,
.total {
    padding-bottom: 15px;
}

.credit-card-form {
    width: 700px;
    background: white;
    border-radius: 0 30px 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group--credit-card {
    width: 450px;
}

.form-group {
    margin-left: 100px;
    margin-top: 60px;
    width: 450px;
}

.form-row {
    display: flex;
    width: 130px;
}

.form-row .form-group {
    flex: 1;
}

.form-group ul {
    display: flex;
    gap: 100px;
    border-bottom: 1px solid #ddd;
}

.form-group li {
    display: block;
    margin-bottom: 29px;
}

.form-group li a {
    display: block;
    position: relative;
    color: #000;
    font-weight: 400;
}

.form-group li a::after {
    content: "";
    position: absolute;
    left: 50%; /* Start i midten af teksten */
    transform: translateX(-50%); /* Centrer linjen */
    bottom: -30px;
    width: 0;
    height: 6px;
    background-color: #f9c4d2;
    transition: width 0.1s ease-out;
}

/* Hover-effekt */
.form-group li a:hover::after {
    width: 82px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #979797;
    font-size: 20px;
    line-height: 150%;
}

input {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #ddd; /* Ensartet grå streg */
    font-size: 24px;
    line-height: 150%;
    color: #333;
    background: transparent;
}

input:focus {
    outline: none;
    border-bottom-color: #666; /* Mørkere grå på fokus */
}

#cardNumber {
    letter-spacing: 1px;
}

/* Remove spinners from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/*
input[type="number"] {
    -moz-appearance: textfield;
}*/

/* Media Queries TABLET */

@media screen and (max-width: 768px) {
    body,
    main,
    header,
    footer {
        max-width: 768px;
    }

    header.nav-bar {
        width: 768px;
    }

    .invoicing {
        display: flex;
        flex-direction: column;
    }

    main.invoicing {
        width: 768px;
    }

    .billing-container {
        max-width: 768px;
        margin: 0;
    }

    .payment-overview {
        max-width: 768px;
        border-radius: 50px;
        margin: 0;
        padding: 0;
    }

    main.invoicing {
        max-width: 768px;
        padding-top: 153px;
        padding-bottom: 200px;
    }

    main.invoicing {
        padding-bottom: 50px;
    }

    section.invoicing {
        display: flex;
        margin: 0 auto;
        gap: 50px;
        padding: 50px;
    }

    .invoicing h1 {
        margin-left: 250px;
    }

    h2.payment {
        margin: 0 auto;
        padding-bottom: 30px;
        padding-top: 0;
    }

    .billing-container {
        width: 670px;
        margin-left: 50px;
    }

    .billing-details {
        margin-bottom: 50px;
    }

    .order-summary {
        width: 470px;
        margin: 0 auto;
    }

    .payment-overview {
        width: 670px;
        height: 400px;
        padding: 25px;
    }

    #credit-card-form {
        max-width: 670px;
        border-radius: 30px;
    }
}

/* Media Queries MOBIL */
@media screen and (max-width: 360px) {
    body,
    main,
    header,
    footer {
        max-width: 360px;
    }

    header.nav-bar {
        width: 360px;
    }

    .invoicing {
        display: flex;
        flex-direction: column;
    }

    main.invoicing {
        width: 360px;
    }

    .billing-container {
        max-width: 320px;
        margin: 0;
    }

    .payment-overview {
        max-width: 360px;
        border-radius: 50px;
        margin: 0;
        padding: 0;
    }

    main.invoicing {
        max-width: 360px;
        padding-top: 153px;
        padding-bottom: 200px;
    }

    main.invoicing {
        padding-bottom: 50px;
    }

    section.invoicing {
        display: flex;
        margin: 0 auto;
        gap: 50px;
        padding: 50px;
    }

    .invoicing h1 {
        margin-left: 55px;
    }

    h2.payment {
        margin: 0 auto;
        padding-bottom: 30px;
        padding-top: 0;
    }

    .billing-container {
        width: 340px;
        margin: 0 auto;
    }

    .detail-town {
        display: block;
    }
    .billing-details {
        margin-bottom: 50px;
    }

    .order-summary {
        width: 470px;
        margin: 0 auto;
    }

    .payment-overview {
        width: 340px;
        height: 400px;
        padding: 25px;
        justify-content: center;
        align-items: center;
        align-self: center;
    }

    #credit-card-form {
        max-width: 340px;
        border-radius: 30px;
        padding: 20px;
        justify-content: center;
        align-items: center;
        align-self: center;
    }

    #credit-card-form ul {
        display: block;
        width: 50px;
    }

    .form-group {
        margin: 10px;
    }

    #expiryDate {
        width: 100px;
        margin-right: 0;
    }
    
    #cvv {
        width: 100px;
    }

    input#cardNumber {
        width: 200px;
    }

    input#name {
        width: 200px;
    }
}
