/* ============================================================
   Akina Pharmacy — Registration Form Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@600;700&family=Roboto:wght@400;500&display=swap');

/* ── Page ────────────────────────────────────────────────── */
body.akina-register-page {
    background: #f4f6f4;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* ── Centered wrapper ────────────────────────────────────── */
#akina-register-wrap {
    width: 700px;
    margin: 60px auto 40px;
    padding: 0;
}

/* ── Logo area (mirrors login page h1 structure) ─────────── */
.akina-reg-logo {
    text-align: center;
    margin-bottom: 16px;
}

.akina-reg-logo img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

.akina-reg-tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #686868;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── White card (wraps heading + form — mirrors #loginform) ── */
.akina-reg-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 32px 36px 28px;
}

.akina-reg-heading {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    text-align: center;
}

.akina-reg-subtitle {
    font-size: 13px;
    color: #686868;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.akina-reg-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 20px 0;
}

/* ── Login link below form ───────────────────────────────── */
.akina-register-login-note {
    text-align: center;
    font-size: 13px;
    color: #686868;
    margin-top: 16px;
}

.akina-register-login-note a {
    color: #82B830;
    font-weight: 500;
    text-decoration: none;
}

.akina-register-login-note a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
.akina-reg-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 20px;
    margin-top: 20px;
}

/* ── Gravity Forms wrapper reset (card styling is on .akina-reg-card) ── */
.gform_wrapper {
    font-family: 'Roboto', sans-serif;
    margin: 0 !important;
}

/* Form title */
.gform_wrapper .gform_title {
    font-family: 'Roboto Slab', serif;
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.gform_wrapper .gform_description {
    color: #686868;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ── Field labels ────────────────────────────────────────── */
.gform_wrapper .gfield_label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4d545c;
    margin-bottom: 5px;
}

.gform_wrapper .gfield_required span {
    display: none !important;
}
.gform_wrapper .gfield_required::after {
    content: ' *';
    font-size: 13px !important;
    color: #82B830;
    font-weight: 500;
}

/* ── Inputs ──────────────────────────────────────────────── */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select {
    border: 1px solid #dde2d9 !important;
    border-radius: 5px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-family: 'Roboto', sans-serif !important;
    color: #1a1a1a !important;
    background: #fafafa !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ── Placeholder color ───────────────────────────────────── */
.gform_wrapper input[type="text"]::placeholder,
.gform_wrapper input[type="email"]::placeholder,
.gform_wrapper input[type="tel"]::placeholder {
    color: #b0b8b0 !important;
    opacity: 1 !important;
}

.gform_wrapper select {
    height: 38px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper select:focus {
    border-color: #82B830 !important;
    box-shadow: 0 0 0 3px rgba(130, 184, 48, 0.15) !important;
    background: #fff !important;
    outline: none !important;
}

/* NPI field highlight when valid */
.akina-npi-field.npi-valid input {
    border-color: #82B830 !important;
    background: #fafff5 !important;
}

/* ── NPI radio toggle ────────────────────────────────────── */
.gform_wrapper .gfield.akina-npi-radio .gfield_label {
    font-size: 13px;
    font-weight: 500;
    color: #4d545c;
    margin-bottom: 8px;
}

.gform_wrapper .gfield.akina-npi-radio .gfield_radio {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gform_wrapper .gfield.akina-npi-radio .gchoice {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gform_wrapper .gfield.akina-npi-radio .gchoice input[type="radio"] {
    accent-color: #82B830;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.gform_wrapper .gfield.akina-npi-radio .gchoice label {
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    margin: 0;
}

/* ── NPI verified info section ───────────────────────────── */


/* Verified fields — read-only appearance */
.gform_wrapper input[type="text"][readonly] {
    background: #f6faf0 !important;
    border-color: #c6dfa0 !important;
    color: #3a5a10 !important;
    cursor: default !important;
    user-select: none !important;
}

.gform_wrapper input[type="text"][readonly]:focus {
    box-shadow: none !important;
    border-color: #c6dfa0 !important;
    outline: none !important;
}

/* ── Field row gap ───────────────────────────────────────── */
.gform-theme--foundation .gform_fields {
    row-gap: 30px !important;
}

/* ── Two-column layout (overrides GF foundation theme grid) ── */
.gform-theme--foundation .gform_fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 20px !important;
}

/* All fields full width by default */
.gform-theme--foundation .gform_fields .gfield {
    grid-column: 1 / -1 !important;
}

/* Half-width pairs */
.gform-theme--foundation .gform_fields .gf-half-left {
    grid-column: 1 !important;
}

.gform-theme--foundation .gform_fields .gf-half-right {
    grid-column: 2 !important;
}

@media (max-width: 600px) {
    .gform-theme--foundation .gform_fields {
        grid-template-columns: 1fr !important;
    }

    .gform-theme--foundation .gform_fields .gf-half-left,
    .gform-theme--foundation .gform_fields .gf-half-right {
        grid-column: 1 / -1 !important;
    }
}

/* ── Field descriptions ──────────────────────────────────── */
.gform_wrapper .gfield_description {
    font-size: 12px;
    color: #686868;
    margin-top: 4px;
}

.gform_wrapper .gfield_description a {
    color: #82B830;
}

/* ── Validation errors ───────────────────────────────────── */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select {
    border-color: #d63638 !important;
    background: #fdf0f0 !important;
}

.gform_wrapper .validation_message {
    color: #8b2020;
    font-size: 12px;
    margin-top: 4px;
}

.gform_wrapper .validation_error {
    border: 1px solid #d63638;
    background: #fdf0f0;
    border-radius: 6px;
    color: #8b2020;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* ── Footer wrapper (tighten gap above submit button) ─────── */
.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer {
    margin-top: 8px !important;
    padding-top: 0 !important;
}

/* ── Submit button ───────────────────────────────────────── */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"] {
    background: #82B830 !important;
    border: none !important;
    border-radius: 100px !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 14px 5px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
    letter-spacing: 0.3px !important;
    width: 219px !important;
    box-sizing: border-box !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover {
    background: #6e9f40 !important;
}

/* ── Checkbox / consent ──────────────────────────────────── */
.gform_wrapper .gfield--type-checkbox .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gform_wrapper .gfield--type-checkbox input[type="checkbox"] {
    accent-color: #82B830;
    margin-top: 3px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.gform_wrapper .gfield--type-checkbox label {
    font-size: 13px;
    color: #686868;
    line-height: 1.5;
}

.gform_wrapper .gfield--type-checkbox label a {
    color: #82B830;
}

/* ── Confirmation message ────────────────────────────────── */
.akina-confirmation {
    text-align: center;
    padding: 20px 0;
}

.akina-confirmation svg {
    margin-bottom: 16px;
}

.akina-confirmation h3 {
    font-family: 'Roboto Slab', serif;
    color: #1a1a1a;
    font-size: 22px;
    margin-bottom: 12px;
}

.akina-confirmation p {
    color: #4d545c;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 740px) {
    #akina-register-wrap {
        width: 90%;
        margin-top: 30px;
    }

    .akina-reg-card {
        padding: 24px 20px;
    }
}
