/* ==================================================
   YSAE CUSTOMER PORTAL
   STAGE 18-4
================================================== */

.ysae-customer-portal {
    width: 100%;
    max-width: 760px;
    margin: 48px auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: inherit;
}

.ysae-customer-portal * {
    box-sizing: border-box;
}


/* HEADER */

.ysae-customer-portal-header {
    margin-bottom: 28px;
    text-align: center;
}

.ysae-customer-portal-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.ysae-customer-portal-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
}


/* FORM */

.ysae-customer-portal-form {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.06);
}

.ysae-customer-portal-field {
    margin-bottom: 22px;
}

.ysae-customer-portal-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.ysae-customer-portal-field input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    color: #111827;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.ysae-customer-portal-field input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.ysae-customer-portal-field input::placeholder {
    color: #9ca3af;
}

.ysae-customer-portal-submit {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 6px 0 0;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        transform .15s ease,
        opacity .15s ease;
}

.ysae-customer-portal-submit:hover {
    opacity: .92;
    transform: translateY(-1px);
}


/* ERROR */

.ysae-customer-portal-error {
    margin: 0 0 20px;
    padding: 15px 17px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 15px;
    line-height: 1.6;
}


/* RESULT */

.ysae-customer-portal-result {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.06);
}

.ysae-customer-portal-success {
    padding: 18px 24px;
    border-bottom: 1px solid #d1fae5;
    background: #ecfdf5;
    color: #047857;
    font-size: 16px;
    font-weight: 700;
}

.ysae-customer-portal-success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 14px;
    vertical-align: middle;
}


/* RESULT SECTION */

.ysae-customer-portal-section {
    padding: 28px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.ysae-customer-portal-section:last-of-type {
    border-bottom: 0;
}

.ysae-customer-portal-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}

.ysae-customer-portal-info {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ysae-customer-portal-info > div {
    min-width: 0;
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
}

.ysae-customer-portal-info span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.ysae-customer-portal-info strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
    color: #111827;
}

.ysae-customer-portal-empty {
    padding: 20px;
    border-radius: 10px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}


/* RESET BUTTON */

.ysae-customer-portal-result > form {
    padding: 0 30px 30px;
}

.ysae-customer-portal-reset {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ysae-customer-portal-reset:hover {
    background: #f9fafb;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 640px) {

    .ysae-customer-portal {
        margin-top: 30px;
        margin-bottom: 50px;
        padding: 0 16px;
    }

    .ysae-customer-portal-header {
        margin-bottom: 22px;
    }

    .ysae-customer-portal-header h2 {
        font-size: 26px;
    }

    .ysae-customer-portal-header p {
        font-size: 15px;
    }

    .ysae-customer-portal-form {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .ysae-customer-portal-section {
        padding: 23px 18px;
    }

    .ysae-customer-portal-info {
        grid-template-columns: 1fr;
    }

    .ysae-customer-portal-result > form {
        padding: 0 18px 22px;
    }
}
