/* Medication Request Page */

.med-request-page {
    min-height: 100vh;
    background: #FAEDE8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ── */
.med-request-hero {
    background: #fff;
    padding: 52px 20px;
    border-bottom: 1px solid #f0ddd8;
}

.med-request-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.med-request-hero-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.med-request-hero-icon svg {
    width: 100px;
    height: 100px;
}

.med-request-hero-text h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: var(--font-primary);
    line-height: 1.2;
}

.med-request-hero-text p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.7;
    font-family: var(--font-secondary);
    font-weight: 400;
}

/* ── Form Container ── */
.med-request-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 20px 72px;
}

.med-request-page-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-bottom: 32px;
    font-family: var(--font-primary);
}

/* ── Cards ── */
.med-request-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.med-request-card-header {
    background: #CE4F49;
    color: #fff;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
}

.med-request-card-body {
    padding: 28px 24px;
}

/* ── Labels ── */
.med-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
    margin-bottom: 7px;
    font-family: var(--font-secondary);
    line-height: 1.4;
}

.med-label.req::after {
    content: ' *';
    color: #CE4F49;
    font-weight: 600;
}

/* ── Inputs ── */
.med-input {
    background: #F7F7F7 !important;
    border: 1.5px solid #D8D8D8 !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    font-family: var(--font-secondary) !important;
    font-weight: 400 !important;
    color: #2a2a2a !important;
    line-height: 1.5 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.med-input:focus {
    border-color: #CE4F49 !important;
    box-shadow: 0 0 0 3px rgba(206, 79, 73, 0.1) !important;
    background: #fff !important;
    outline: none !important;
}

.med-input::placeholder {
    color: #B8B8B8 !important;
    font-weight: 400 !important;
}

select.med-input {
    cursor: pointer;
}

/* ── What Happens Next Panel ── */
.med-request-info-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 28px 24px;
}

.med-info-title {
    font-size: 13px;
    font-weight: 700;
    color: #CE4F49;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-family: var(--font-primary);
}

.med-info-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.med-info-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.med-info-step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #CE4F49;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    font-family: var(--font-primary);
}

.med-info-steps li div strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
    font-family: var(--font-secondary);
    line-height: 1.3;
}

.med-info-steps li div p {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.6;
    font-family: var(--font-secondary);
    font-weight: 400;
}

/* ── Consent ── */
.med-request-consent-card .med-request-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.med-consent-checkbox {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #CE4F49;
    cursor: pointer;
}

.med-consent-item label {
    font-size: 14px;
    font-weight: 400;
    color: #3a3a3a;
    line-height: 1.6;
    cursor: pointer;
    font-family: var(--font-secondary);
    margin: 0;
}

.med-consent-link {
    color: #CE4F49;
    font-weight: 600;
    text-decoration: none;
}

.med-consent-link:hover {
    text-decoration: underline;
    color: #b8403a;
}

/* ── Submit ── */
.med-request-submit-wrap {
    text-align: center;
    margin-top: 32px;
}

.med-request-submit-btn {
    background: #CE4F49;
    color: #fff;
    border: none;
    padding: 15px 80px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: var(--font-secondary);
}

.med-request-submit-btn:hover {
    background: #b8403a;
    transform: translateY(-1px);
}

.med-request-submit-btn:active {
    transform: translateY(0);
}

/* ── Thank You Page ── */
.med-thankyou-page {
    min-height: 80vh;
    background: #FAEDE8;
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
}

.med-thankyou-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 52px 44px 48px;
    text-align: center;
}

.med-thankyou-icon {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.med-thankyou-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.med-thankyou-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 18px;
    font-family: var(--font-primary);
}

.med-thankyou-subtitle {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    font-family: var(--font-secondary);
    font-weight: 400;
}

.med-thankyou-contact {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
    font-family: var(--font-secondary);
}

.med-thankyou-contact strong {
    color: #1a1a1a;
}

.med-thankyou-link {
    color: #CE4F49;
    font-weight: 600;
    text-decoration: none;
}

.med-thankyou-link:hover {
    text-decoration: underline;
    color: #b8403a;
}

.med-thankyou-ref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F5F5F5;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-family: var(--font-secondary);
}

.med-thankyou-ref-label {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.med-thankyou-ref-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.med-thankyou-btn {
    display: block;
    width: 100%;
    background: #CE4F49;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: var(--font-secondary);
    letter-spacing: 0.3px;
}

.med-thankyou-btn:hover {
    background: #b8403a;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 576px) {
    .med-thankyou-card {
        padding: 40px 24px 36px;
        border-radius: 16px;
    }

    .med-thankyou-title {
        font-size: 22px;
    }

    .med-thankyou-subtitle {
        font-size: 14px;
    }
}

/* ── Validation ── */
.med-input-error {
    border-color: #CE4F49 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(206, 79, 73, 0.12) !important;
}

.med-checkbox-error {
    outline: 2px solid #CE4F49;
    outline-offset: 2px;
    border-radius: 2px;
}

.med-field-error {
    display: block;
    font-size: 12px;
    color: #CE4F49;
    font-family: var(--font-secondary);
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .med-request-hero-inner {
        gap: 28px;
    }

    .med-request-hero-text h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .med-request-hero {
        padding: 50px 16px;
    }

    .med-request-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .med-request-hero-text h1 {
        font-size: 26px;
    }

    .med-request-hero-text p {
        font-size: 15px;
    }

    .med-request-container {
        padding: 28px 16px 52px;
    }

    .med-request-card-body {
        padding: 20px 18px;
    }

    .med-request-info-panel {
        padding: 22px 18px;
    }

    .med-request-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .med-request-hero-text h1 {
        font-size: 22px;
    }

    .med-request-page-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .med-request-card-header {
        font-size: 14px;
        padding: 13px 16px;
    }

    .med-input {
        font-size: 14px !important;
    }
}
