:root {
    --color-border-tertiary: #69696912;
    --color-border-secondary: #6969691a;
    --border-radius-lg: 12px;
    --border-radius-md: 5px;
}

main {
    min-height: 70dvh;
}

.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    min-height: 520px;
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-background-primary);
    max-width: 1000px;
    margin: 150px auto 40px;
}

.left {
    background: #0F6E56;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.left-title {
    font-size: 22px;
    font-weight: 500;
    color: #E1F5EE;
    line-height: 1.3;
}

.left-sub {
    font-size: 14px;
    color: #9FE1CB;
    line-height: 1.7;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 16px;
    height: 16px;
    stroke: #9FE1CB;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-label {
    font-size: 12px;
    color: #5DCAA5;
    margin-bottom: 2px;
}

.info-val {
    font-size: 13px;
    color: #E1F5EE;
}

.divider-left {
    height: 0.5px;
    background: rgba(255, 255, 255, 0.12);
}

.right {
    padding: 2.5rem 2rem;
}

.form-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.form-sub {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 0.5px solid var(--color-border-secondary);
    border-radius: var(--border-radius-md);
    background: var(--color-background-primary);
    color: var(--color-text-primary);
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #1D9E75;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888780' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 300;
    border: none;
    border-radius: var(--border-radius-md);
    background: #0F6E56;
    color: #E1F5EE;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 4px;
}

.submit-btn:hover { background: #1D9E75; }
.submit-btn:active { transform: scale(0.98); }

.success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E1F5EE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.success-icon svg {
    width: 22px;
    height: 22px;
    stroke: #0F6E56;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.success-msg {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
    .page {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
        margin-top: 100px;
    }

    .left {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .left-title {
        font-size: 20px;
    }
}

/* ── Small tablet / large phone (≤768px) ── */
@media (max-width: 1130px) {
    .page {
        grid-template-columns: 1fr;
        min-height: unset;
        margin-top: 80px;
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 12px;
        max-width: 98% !important;
    }

    .left {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        /* collapse info items to a horizontal scroll row on small screens */
    }

    .left-title {
        font-size: 20px;
    }

    .left-sub {
        font-size: 13px;
    }

    /* Stack info items in a row on tablet landscape */
    .info-items-row {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .right {
        padding: 2rem 1.5rem;
    }

    .row2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
    .page {
        margin-top: 88px;
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 10px;
    }

    .left {
        padding: 1.5rem 1.25rem;
    }

    .left-title {
        font-size: 18px;
    }

    .right {
        padding: 1.5rem 1.25rem;
    }

    .form-title {
        font-size: 16px;
    }

    /* First name / Last name go full width on mobile */
    .row2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
    .page {
        margin-left: 8px;
        margin-right: 8px;
    }

    .left {
        padding: 1.25rem 1rem;
    }

    .right {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 1190px){
    .page{
      max-width: 96% !important;  
    }
}