/* ── GS Registration Page ─────────────────────────────────────────────────── */

/* ── My-account page: login card + registration section ── */
.gs-myaccount-login-page {
    padding: 32px 0 60px;
}

.gs-login-card-wrap {
    max-width: 520px;
    margin: 0 auto 40px;
}

.gs-login-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 28px 32px 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.gs-login-card__title {
    color: #111;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e8e8;
}

.gs-login-card .woocommerce-form-row label {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.gs-login-card .woocommerce-Input {
    background: #f8f8f8 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #111 !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.gs-login-card .woocommerce-Input:focus {
    border-color: #d6bf36 !important;
    outline: none;
}

.gs-login-card .woocommerce-LostPassword a,
.gs-login-card .woocommerce-LostPassword a:hover {
    color: #866600;
    font-size: 13px;
}

.gs-login-card .formBtn {
    background: #111 !important;
    border: none !important;
    color: #d6bf36 !important;
    font-weight: 700 !important;
    padding: 11px 32px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.gs-login-card .formBtn:hover {
    background: #2a2a2a !important;
}

/* OTP plugin method-tabs inside the card */
.gs-login-card .gs-otp-method-tabs,
.gs-login-card .gs-otp-step { padding: 0; }
.gs-login-card .woocommerce-form-row { margin-bottom: 14px; }

/* ── "New Customer?" section divider ── */
.gs-account-reg-heading {
    text-align: center;
    position: relative;
    margin: 0 0 4px;
}

.gs-account-reg-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.gs-account-reg-heading span {
    position: relative;
    background: #f5f5f5;
    padding: 0 16px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gs-account-reg-section {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .gs-login-card { padding: 20px; }
    .gs-login-card__title { font-size: 17px; }
    .gs-myaccount-login-page { padding: 20px 0 40px; }
}

/* ── CSS variables ── */
.gs-reg-page,
.woocommerce-account .woocommerce {
    --gs-gold:        #d6bf36;
    --gs-gold-dark:   #866600;
    --gs-bg-page:     #f5f5f5;
    --gs-bg-card:     #ffffff;
    --gs-bg-input:    #f8f8f8;
    --gs-border:      #e0e0e0;
    --gs-border-foc:  #d6bf36;
    --gs-text:        #111111;
    --gs-label:       #555555;
    --gs-placeholder: #aaaaaa;
    --gs-muted:       #888888;
    --gs-divider:     #ebebeb;
    --gs-red:         #d93025;
}

.gs-reg-page {
    background: var(--gs-bg-page);
    min-height: 65vh;
    padding-bottom: 60px;
}

/* ── Sub-header strip ── */
.gs-reg-subheader {
    background: #ffffff;
    border-bottom: 2px solid var(--gs-gold);
    padding: 18px 0;
}

.gs-reg-subheader h1 {
    color: #111;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── Tab pill row ── */
#gs-pane-individual {
    margin-bottom: 20px;
}
.gs-reg-tab-outer {
    background: var(--gs-bg-card);
    /* border: 1px solid var(--gs-border); */
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    /* padding: 18px 24px 0; */
    margin-top: 24px;
    margin-bottom: 20px;
    /* box-shadow: 0 1px 4px rgba(0,0,0,0.05); */
}

.gs-reg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-bottom: 0;
    width: 100%;
}

.gs-reg-tab-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 30px;
    color: #555;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
    outline: none;
    line-height: 1.5;
}

.gs-reg-tab-btn:hover {
    border-color: var(--gs-gold);
    color: var(--gs-gold-dark);
}

.gs-reg-tab-btn.active {
    background: var(--gs-gold);
    border-color: var(--gs-gold);
    color: #111;
    font-weight: 700;
}

/* ── Dropdown tabs (SMSF / Other) ── */
.gs-reg-tab-dropdown {
    position: relative;
}

.gs-reg-tab-dropdown .gs-reg-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gs-reg-tab-dropdown .gs-reg-tab-btn svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.18s;
}

.gs-reg-tab-dropdown.open .gs-reg-tab-btn svg {
    transform: rotate(180deg);
}

.gs-reg-tab-dropdown.open .gs-reg-tab-btn,
.gs-reg-tab-dropdown .gs-reg-tab-btn.has-active {
    border-color: var(--gs-gold);
    color: var(--gs-gold-dark);
}

.gs-tab-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-width: 200px;
    z-index: 200;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gs-reg-tab-dropdown.open .gs-tab-dropdown-menu {
    display: block;
}

.gs-tab-dropdown-menu a {
    display: block;
    padding: 9px 16px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.gs-tab-dropdown-menu a:hover,
.gs-tab-dropdown-menu a.active {
    background: var(--gs-gold);
    color: #111;
    font-weight: 700;
}

/* ── Main form card ── */
.gs-reg-card {
    background: var(--gs-bg-card);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* ── Pane visibility ── */
.gs-reg-pane { display: none; }
.gs-reg-pane.active { display: block; }

/* ── Sub-type radios (e.g. Individual / Sole Trader) ── */
.gs-reg-subtypes {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gs-divider);
    margin-bottom: 6px;
}

.gs-radio-pill {
    display: flex !important;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    margin: 0;
}

.gs-radio-pill input[type="radio"] {
    display: none;
}

.gs-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.18s;
}

.gs-radio-circle::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gs-gold);
    opacity: 0;
    transition: opacity 0.18s;
}

.gs-radio-pill input[type="radio"]:checked ~ .gs-radio-circle {
    border-color: var(--gs-gold);
}

.gs-radio-pill input[type="radio"]:checked ~ .gs-radio-circle::after {
    opacity: 1;
}

.gs-radio-pill input[type="radio"]:checked ~ span:last-child {
    color: #111;
    font-weight: 600;
}

/* ── Section heading ── */
.gs-reg-section {
    margin-top: 24px;
}

.gs-reg-section-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gs-gold-dark);
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gs-gold);
    margin-bottom: 18px;
}

.gs-reg-section-title small {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* ── Form grid row ── */
.gs-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.gs-form-col {
    padding: 0 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.gs-col-3  { width: 25%; }
.gs-col-4  { width: 33.333%; }
.gs-col-6  { width: 50%; }
.gs-col-12 { width: 100%; }

/* ── Label + input ── */
.gs-field label {
    display: flex;
    color: var(--gs-label);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.gs-req { color: var(--gs-red); margin-left: 2px; }

.gs-field input[type="text"],
.gs-field input[type="email"],
.gs-field input[type="password"],
.gs-field input[type="tel"],
.gs-field input[type="date"],
.gs-field select,
.gs-field textarea {
    width: 100%;
    height: 42px;
    background: var(--gs-bg-input);
    border: 1px solid var(--gs-border);
    border-radius: 4px;
    color: var(--gs-text);
    font-size: 14px;
    padding: 0 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.gs-field input[type="text"]:focus,
.gs-field input[type="email"]:focus,
.gs-field input[type="password"]:focus,
.gs-field input[type="tel"]:focus,
.gs-field input[type="date"]:focus,
.gs-field select:focus {
    border-color: var(--gs-border-foc);
    box-shadow: 0 0 0 3px rgba(214, 191, 54, 0.12);
    background: #fff;
}

.gs-field input::placeholder,
.gs-field textarea::placeholder {
    color: var(--gs-placeholder);
    font-size: 13px;
}

.gs-field select {
    background-color: var(--gs-bg-input);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.gs-field select option {
    background: #fff;
    color: #111;
}

/* ── Eye-toggle password ── */
.gs-eye-wrap {
    position: relative;
}

.gs-eye-wrap input {
    padding-right: 42px !important;
}

.gs-eye-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 17px;
    display: flex;
    align-items: center;
}

.gs-eye-toggle:hover { color: #555; }

/* ── Address section ── */

/* ── Same as Above checkbox ── */
.gs-same-as-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    cursor: pointer;
    user-select: none;
}

.gs-same-as-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--gs-gold);
    cursor: pointer;
}

.gs-same-as-wrap span {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

/* ── Shipping address type radios ── */
.gs-addr-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0 14px;
}

/* ── Terms row ── */
.gs-terms-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--gs-divider);
}

.gs-terms-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--gs-gold);
    cursor: pointer;
}

.gs-terms-wrap p {
    color: #666;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.gs-terms-wrap a { color: var(--gs-gold-dark); font-weight: 600; text-decoration: none; }
.gs-terms-wrap a:hover { text-decoration: underline; }

/* ── Notice banner ── */
.gs-reg-notice {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fdf9e6;
    border-left: 3px solid var(--gs-gold);
    border-radius: 0 4px 4px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.55;
}

/* ── reCAPTCHA area ── */
.gs-recaptcha-area {
    margin: 20px 0 0;
}

/* ── Submit row ── */
.gs-reg-submit-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gs-divider);
}

/* ── Secondary / outline button (Add Beneficiary, etc.) ── */
.gs-btn-secondary {
    background: transparent;
    border: 2px solid var(--gs-gold);
    color: var(--gs-gold-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.gs-btn-secondary:hover {
    background: var(--gs-gold);
    color: #111;
}

/* ── Inline checkbox label (Same as Company Name, etc.) ── */
.gs-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 400;
    color: var(--gs-muted);
    cursor: pointer;
}
.gs-inline-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--gs-gold);
    cursor: pointer;
}

/* ── Beneficiary blocks ── */
.gs-beneficiary-block + .gs-beneficiary-block {
    border-top: 1px dashed var(--gs-divider);
    padding-top: 4px;
}

.gs-btn-create-account {
    background: #111;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.gs-btn-create-account:hover { background: #2a2a2a; }
.gs-btn-create-account:disabled { background: #ddd; color: #aaa; cursor: not-allowed; }

.gs-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(214, 191, 54, 0.3);
    border-top-color: #d6bf36;
    border-radius: 50%;
    animation: gs-spin 0.7s linear infinite;
    display: none;
}

.gs-btn-create-account.loading .gs-btn-spinner { display: inline-block; }

@keyframes gs-spin { to { transform: rotate(360deg); } }

/* ── Coming-soon pane stub ── */
.gs-reg-stub {
    padding: 60px 0;
    text-align: center;
    color: var(--gs-muted);
    font-size: 15px;
}

/* ── jQuery UI Datepicker overrides ── */
.ui-datepicker {
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px;
}
.ui-datepicker .ui-datepicker-header {
    background: #111;
    border: none;
    border-radius: 4px;
    color: #d6bf36;
    padding: 6px 0;
}
.ui-datepicker .ui-datepicker-title { color: #d6bf36; font-weight: 600; }
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span { display: none; }
.ui-datepicker .ui-datepicker-prev::after { content: '‹'; color: #d6bf36; font-size: 18px; }
.ui-datepicker .ui-datepicker-next::after { content: '›'; color: #d6bf36; font-size: 18px; }
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    background: #1d1d1d;
    color: #d6bf36;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 13px;
}
.ui-datepicker table { width: 100%; }
.ui-datepicker th { color: #555; font-size: 11px; font-weight: 600; padding: 4px; }
.ui-datepicker td { padding: 2px; }
.ui-datepicker td a,
.ui-datepicker td span {
    display: block;
    text-align: center;
    padding: 5px;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.ui-datepicker td a:hover { background: #f5f0d0; color: #111; }
.ui-datepicker td.ui-datepicker-today a { background: #f0e88a; color: #111; }
.ui-datepicker td.ui-state-active a,
.ui-datepicker td .ui-state-active {
    background: #d6bf36 !important;
    color: #111 !important;
    font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .gs-col-3  { width: 50%; }
    .gs-col-4  { width: 50%; }
}

@media (max-width: 767px) {
    .gs-reg-tab-outer  { padding: 14px 14px 0; margin-top: 16px; }
    .gs-reg-card       { padding: 16px; }
    .gs-reg-tabs       { gap: 6px; }
    .gs-reg-tab-btn    { font-size: 13px; padding: 5px 14px; }
    .gs-col-3,
    .gs-col-4,
    .gs-col-6  { width: 100%; }
    .gs-reg-subtypes   { gap: 14px; }
    .gs-addr-type-row  { gap: 12px; }
    .gs-btn-create-account { width: 100%; justify-content: center; }
    .gs-reg-submit-row { justify-content: center; }
}

/* ── Trust Deed file upload ── */
.gs-file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}
.gs-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
.gs-file-btn {
    display: inline-block;
    background: var(--gs-gold);
    color: #111;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
    border: none;
    cursor: pointer;
}
.gs-file-label:hover .gs-file-btn {
    background: var(--gs-gold-dark);
    color: #fff;
}
.gs-file-name {
    font-size: 13px;
    color: var(--gs-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Trustee blocks ── */
.gs-trustee-block + .gs-trustee-block {
    border-top: 1px dashed var(--gs-divider);
    padding-top: 4px;
}

/* ── Per-field OTP verification (email + mobile) ── */
.gs-otp-ctrl {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.gs-otp-verify,
.gs-otp-confirm {
    background: var(--gs-gold-dark);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}
.gs-otp-verify:hover,
.gs-otp-confirm:hover { filter: brightness(1.08); }
.gs-otp-verify:disabled,
.gs-otp-confirm:disabled { opacity: .6; cursor: default; }

.gs-otp-codebox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.gs-otp-code {
    width: 120px;
    padding: 6px 8px;
    border: 1px solid var(--gs-input-border, #cfcfcf);
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 2px;
    text-align: center;
}

.gs-otp-resend {
    background: none;
    border: 0;
    color: var(--gs-gold-dark);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.gs-otp-resend:disabled { color: var(--gs-muted, #999); cursor: default; text-decoration: none; }

.gs-otp-badge {
    color: #1a7f37;
    font-weight: 700;
    font-size: 13px;
}
.gs-otp-change {
    color: var(--gs-gold-dark);
    font-weight: 600;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.gs-otp-msg { flex-basis: 100%; font-size: 12px; margin-top: 2px; }
.gs-otp-msg-err { color: var(--gs-red, #c0392b); }
.gs-otp-msg-ok  { color: #1a7f37; }

input.gs-otp-locked {
    background: #f3faf4;
    border-color: #b7e0c0;
}

/* Create Account button while contact fields are unverified */
.gs-btn-create-account:disabled,
.gs-btn-create-account.gs-btn-locked {
    opacity: .5;
    cursor: not-allowed;
}
