
/* =========================
   Global Styles
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 50px 20px 30px;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        135deg,
        #0798ad 0%,
        #079b9d 42%,
        #50d58b 100%
    );
    color: #080808;
}

/* =========================
   Main Container
========================= */

.shipping-container {
    width: 100%;
    max-width: 1084px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 31px 41px 27px;
}

.shipping-form h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 25px;
}

/* =========================
   Form Layout
========================= */

.form-grid {
    display: grid;
    gap: 22px;
    margin-bottom: 13px;
}

.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.two-columns {
    grid-template-columns: 1.35fr 1fr;
}

.address-grid {
    grid-template-columns: 1.35fr 1.05fr 1fr 0.68fr;
    gap: 12px;
    margin: 0 -3px;
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field label {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    margin-bottom: 10px;
}

.invisible-label {
    visibility: hidden;
}

/* =========================
   Inputs and Dropdown
========================= */

.field input,
.field select {
    width: 100%;
    height: 53px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid #bcbcbc;
    border-radius: 5px;
    background-color: #ffffff;
    color: #111111;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.field input::placeholder {
    color: #a9a9a9;
    opacity: 1;
}

.field input:focus,
.field select:focus {
    border-color: #079fa9;
    box-shadow: 0 0 0 2px rgba(7, 159, 169, 0.12);
}

.field select {
    color: #a9a9a9;
    cursor: pointer;
}

.field select:valid {
    color: #111111;
}

/* =========================
   Phone Number Input
========================= */

.phone-input {
    display: flex;
    width: 100%;
    height: 53px;
    min-width: 0;
    border: 1px solid #bcbcbc;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff;
}

.phone-input:focus-within {
    border-color: #079fa9;
    box-shadow: 0 0 0 2px rgba(7, 159, 169, 0.12);
}

.country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 12px;
    border-right: 1px solid #bcbcbc;
    font-size: 16px;
    white-space: nowrap;
}

.phone-input input {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 9px;
}

.phone-input input:focus {
    border: none;
    box-shadow: none;
}

/* =========================
   Address Fields
========================= */

.full-width {
    margin-bottom: 13px;
}

.full-width input {
    height: 53px;
}

/* =========================
   Continue Button
========================= */

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 36px;
}

.continue-button {
    width: 191px;
    height: 54px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(
        110deg,
        #079eaf 0%,
        #1da568 100%
    );
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.continue-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 150, 140, 0.2);
}

.continue-button:active {
    transform: translateY(0);
}

/* =========================
   Tablet Responsive
========================= */

@media (max-width: 900px) {
    body {
        padding: 30px 18px;
    }

    .shipping-container {
        max-width: 720px;
        padding: 30px;
    }

    .three-columns {
        grid-template-columns: 1fr 1fr;
    }

    .last-name-field {
        grid-column: 1;
        grid-row: 2;
    }

    .three-columns .field:last-child {
        grid-column: 2;
        grid-row: 2;
    }

    .two-columns {
        grid-template-columns: 1fr 1fr;
    }

    .address-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin: 0 0 13px;
    }

    .form-grid {
        gap: 16px;
        margin-bottom: 16px;
    }

    .full-width {
        margin-bottom: 16px;
    }

    .form-actions {
        margin-top: 25px;
    }
}

/* =========================
   Mobile Responsive
========================= */

@media (max-width: 560px) {
    body {
        padding: 18px 12px;
    }

    .shipping-container {
        padding: 24px 18px;
        border-radius: 15px;
    }

    .shipping-form h2 {
        font-size: 20px;
        margin-bottom: 22px;
    }

    .three-columns,
    .two-columns,
    .address-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .three-columns .field,
    .three-columns .field:last-child,
    .last-name-field {
        grid-column: auto;
        grid-row: auto;
    }

    .invisible-label {
        display: none;
    }

    .field label {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .field input,
    .field select,
    .phone-input {
        height: 49px;
        font-size: 15px;
    }

    .country-code {
        font-size: 15px;
        padding: 0 12px;
    }

    .form-grid {
        margin-bottom: 16px;
    }

    .full-width {
        margin-bottom: 16px;
    }

    .form-actions {
        margin-top: 25px;
    }

    .continue-button {
        width: 100%;
        height: 51px;
    }
}