/* ============================================================
   SOS Geek – Stripe Verification Plugin Styles
   ============================================================ */

/* ----- Reset / Base ---------------------------------------- */
.sosgeek-page-wrapper *,
.sosgeek-page-wrapper *::before,
.sosgeek-page-wrapper *::after {
    box-sizing: border-box;
}

.sosgeek-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2d2d2d;
    max-width: 1060px;
    margin: 32px auto;
    padding: 0 16px;
}

.sosgeek-page-wrapper.sg-center-layout {
    max-width: 860px;
}

/* ----- Progress Stepper ------------------------------------ */
.sosgeek-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

.sosgeek-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.sosgeek-step.active { color: #b8882a; }
.sosgeek-step.done   { color: #b8882a; }

.sosgeek-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ccc;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    color: #aaa;
    flex-shrink: 0;
}

.sosgeek-step.active .sosgeek-step-num {
    border-color: #b8882a;
    background: #b8882a;
    color: #fff;
}

.sosgeek-step.done .sosgeek-step-num {
    border-color: #b8882a;
    background: #b8882a;
    color: #fff;
    font-size: 14px;
}

.sosgeek-step-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
}

.sosgeek-step-line.sg-line-done {
    background: #b8882a;
}

/* ----- Two-column layout (Step 1 & 3) ---------------------- */
.sosgeek-layout,
.sosgeek-verify-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ----- Form Panel ------------------------------------------ */
.sosgeek-form-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sosgeek-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.sg-verify-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ----- Sections -------------------------------------------- */
.sosgeek-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}
.sosgeek-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sosgeek-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sosgeek-section-icon { font-size: 15px; line-height: 1; }

/* ----- Fields ---------------------------------------------- */
.sosgeek-field { margin-bottom: 16px; }
.sosgeek-field:last-child { margin-bottom: 0; }

.sosgeek-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.sosgeek-field input[type="text"],
.sosgeek-field input[type="email"],
.sosgeek-field input[type="tel"],
.sosgeek-field textarea,
.sosgeek-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    appearance: none;
}

.sosgeek-field input::placeholder,
.sosgeek-field textarea::placeholder { color: #bbb; }

.sosgeek-field input:focus,
.sosgeek-field textarea:focus,
.sosgeek-field select:focus {
    border-color: #b8882a;
    box-shadow: 0 0 0 3px rgba(184,136,42,0.12);
    background: #fff;
}

.sosgeek-field textarea { min-height: 110px; resize: vertical; }

/* Two-column row inside a section */
.sosgeek-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ----- Upload Area ----------------------------------------- */
.sosgeek-upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.18s;
}
.sosgeek-upload-area:hover { border-color: #b8882a; }

.sosgeek-upload-inner { pointer-events: none; }
.sosgeek-upload-icon { font-size: 28px; display: block; margin-bottom: 8px; color: #aaa; }
.sosgeek-upload-inner p { font-size: 13px; color: #aaa; margin: 0; }

/* ----- Form Footer / Buttons ------------------------------- */
.sosgeek-form-footer {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.sosgeek-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: #b8882a;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    text-decoration: none;
}
.sosgeek-button:hover { background: #a07520; }
.sosgeek-button:active { transform: scale(0.98); }
.sosgeek-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.sosgeek-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #fff;
    color: #555;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s;
}
.sosgeek-btn-back:hover { background: #f5f5f5; }

/* ----- Message -------------------------------------------- */
.sosgeek-message {
    margin-top: 14px;
    font-size: 14px;
    color: #c0392b;
    min-height: 20px;
}

/* ----- Sidebar --------------------------------------------- */
.sosgeek-sidebar {
    position: sticky;
    top: 24px;
}

.sosgeek-sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sosgeek-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

/* Trust items */
.sosgeek-trust-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.sosgeek-trust-item:last-of-type { margin-bottom: 0; }

.sosgeek-trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: #f0f7f0;
    color: #27ae60;
}

.sosgeek-trust-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.sosgeek-trust-item p { font-size: 12px; color: #777; margin: 0; line-height: 1.5; }

/* Security note */
.sosgeek-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 14px;
    background: #fff8f0;
    border: 1px solid #fde8c8;
    border-radius: 8px;
}
.sosgeek-security-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.sosgeek-security-note p { font-size: 12px; color: #b8882a; margin: 0; line-height: 1.5; }

/* ============================================================
   STEP 2 – Payment Choice Cards
   ============================================================ */
.sosgeek-payment-choice-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 32px;
}

.sosgeek-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
    overflow: visible;
    padding-top: 16px; /* room for the badge that pops above the card */
}

/* Base card */
.sosgeek-pay-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 32px 28px;
    position: relative;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.sosgeek-pay-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* push button to bottom of card */
.sosgeek-pay-card .sosgeek-pay-btn {
    margin-top: auto;
}

/* Featured (pre-auth) card */
.sosgeek-pay-card--featured {
    border-color: #b8882a;
    box-shadow: 0 4px 20px rgba(184,136,42,0.14);
}

/* Most popular badge */
.sosgeek-badge-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #b8882a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.sosgeek-pay-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.sg-recommended {
    font-size: 13px;
    font-weight: 500;
    color: #b8882a;
}

.sosgeek-pay-price {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 6px;
}

.sg-pay-today-label {
    font-size: 16px;
    font-weight: 500;
    color: #777;
}

/* Perks list */
.sosgeek-pay-perks {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.sosgeek-pay-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    padding: 5px 0;
}

.sg-perk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eaf7ed;
    color: #27ae60;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.sg-perk-gold {
    background: #fdf3e0;
    color: #b8882a;
}

/* Pay buttons — works for both <button> and <a> */
.sosgeek-pay-btn {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.sosgeek-pay-btn--outline {
    background: #fff;
    border-color: #b8882a;
    color: #b8882a;
}
.sosgeek-pay-btn--outline:hover {
    background: #fdf6ea;
    color: #b8882a;
}

.sosgeek-pay-btn--primary {
    background: #b8882a;
    color: #fff;
    border-color: #b8882a;
}
.sosgeek-pay-btn--primary:hover {
    background: #a07520;
    color: #fff;
}

.sosgeek-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Help line */
.sg-help-line {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #666;
}
.sg-help-line a { color: #b8882a; text-decoration: none; font-weight: 600; }
.sg-help-line a:hover { text-decoration: underline; }

/* ============================================================
   STEP 3 – Verify Card
   ============================================================ */
.sosgeek-card-verification { /* inner form area, no extra card needed */ }

/* Input with leading icon */
.sosgeek-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sg-input-icon {
    position: absolute;
    left: 12px;
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
    z-index: 1;
}
.sosgeek-input-icon-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.sosgeek-input-icon-wrap input:focus {
    border-color: #b8882a;
    box-shadow: 0 0 0 3px rgba(184,136,42,0.12);
    background: #fff;
}

/* Stripe Elements wrapper */
.sg-stripe-element {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    background: #fafafa;
    font-size: 14px;
    min-height: 40px;
}
.sg-stripe-element.StripeElement--focus {
    border-color: #b8882a;
    box-shadow: 0 0 0 3px rgba(184,136,42,0.12);
    background: #fff;
}

/* Card number with brand icons on right */
.sg-card-number-wrap { flex-wrap: nowrap; }
.sg-card-brands {
    position: absolute;
    right: 10px;
    display: flex;
    gap: 4px;
    align-items: center;
    pointer-events: none;
}

/* Save card checkbox */
.sg-save-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin: 8px 0 16px;
    cursor: pointer;
}
.sg-save-card-label input { cursor: pointer; }

/* Security badges */
.sg-security-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.sg-security-badges span {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Verify footer row */
.sosgeek-verify-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

/* Booking Summary Sidebar */
.sg-booking-summary {}

.sg-summary-appt {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}
.sg-summary-appt-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.sg-summary-appt strong { font-size: 13px; color: #1a1a1a; display: block; margin-bottom: 3px; }
.sg-summary-appt p { font-size: 12px; color: #888; margin: 0; }

.sg-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    padding: 6px 0;
}

.sg-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 12px 0 8px;
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
}

.sg-summary-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px;
    background: #f5f9ff;
    border: 1px solid #d0e4ff;
    border-radius: 8px;
    font-size: 12px;
    color: #4a7ab5;
    line-height: 1.5;
}
.sg-summary-note span { flex-shrink: 0; font-size: 14px; }
.sg-summary-note p { margin: 0; }

/* ============================================================
   STEP 4 – Confirmation
   ============================================================ */
.sosgeek-confirmation-wrap {
    text-align: center;
    padding: 40px 0;
}

.sg-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(39,174,96,0.25);
}

.sg-confirm-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.sg-confirm-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 36px;
}

/* Payment summary box */
.sg-payment-summary-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: left;
}

.sg-ps-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.sg-ps-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sg-ps-header strong { font-size: 15px; color: #1a1a1a; display: block; margin-bottom: 3px; }
.sg-ps-header p { font-size: 12px; color: #888; margin: 0; }

.sg-ps-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    padding: 7px 0;
}

.sg-ps-green { color: #27ae60; font-weight: 600; }

.sg-ps-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 10px 0;
}

.sg-ps-balance {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.sg-ps-after-note {
    font-size: 11px;
    color: #aaa;
    margin: 10px 0 0;
    font-style: italic;
}

/* Technician call notice */
.sg-technician-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f0f7f0;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    margin-top: 4px;
}

.sg-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.sg-technician-notice p {
    font-size: 14px;
    color: #2d6a2d;
    margin: 0;
    line-height: 1.6;
}

.sg-technician-notice strong {
    color: #1a4d1a;
}

/* Single-row payment summary (no remaining balance row) */
.sg-ps-single {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
}

/* ============================================================
   Error / Cancel
   ============================================================ */
.sosgeek-result {
    max-width: 560px;
    margin: 60px auto;
    text-align: center;
    padding: 48px 40px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sosgeek-result h1 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.sosgeek-success h1 { color: #27ae60; }
.sosgeek-cancel  h1 { color: #c0392b; }

.sosgeek-error {
    max-width: 560px;
    margin: 40px auto;
    padding: 20px 24px;
    background: #fff5f5;
    border: 1px solid #fdd;
    border-radius: 8px;
    color: #c0392b;
    font-size: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
    .sosgeek-layout,
    .sosgeek-verify-grid { grid-template-columns: 1fr; }
    .sosgeek-sidebar { position: static; }
    .sosgeek-payment-options { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .sosgeek-form-panel { padding: 24px 18px; }
    .sosgeek-row { grid-template-columns: 1fr; gap: 0; }
    .sosgeek-stepper { gap: 0; }
    .sosgeek-step-line { max-width: 40px; margin: 0 6px; }
    .sosgeek-step-label { display: none; }
    .sosgeek-form-footer { justify-content: stretch; }
    .sosgeek-button { width: 100%; justify-content: center; }
    .sosgeek-verify-footer { flex-direction: column; }
    .sosgeek-verify-footer .sosgeek-button,
    .sosgeek-verify-footer .sosgeek-btn-back { width: 100%; justify-content: center; }
    .sg-security-badges { gap: 12px; }
}
