/* ==============================================
   GET STARTED — Form-specific styles
   Uses welcome.css for nav, typography, variables
   ============================================== */

/* Page layout */
.gs-page {
    padding: 7rem 1.5rem 3rem;
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
}

.gs-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.gs-hero h1 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.gs-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Form cards */
.gs-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.gs-card h2 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    font-family: 'Fraunces', serif;
}
.gs-card h2 .gs-card-icon {
    margin-right: 0.5rem;
}

/* Form fields */
.gs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.gs-field {
    margin-bottom: 1rem;
}
.gs-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.gs-field label .gs-optional {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--slate-light);
    margin-left: 0.25rem;
}
.gs-field input,
.gs-field textarea,
.gs-field select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #D8DDE6;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--warm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.gs-field input:focus,
.gs-field textarea:focus,
.gs-field select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}
.gs-field textarea {
    resize: vertical;
    min-height: 100px;
}
.gs-field .gs-error-text {
    color: var(--coral);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}
.gs-field.gs-has-error input,
.gs-field.gs-has-error textarea,
.gs-field.gs-has-error select {
    border-color: var(--coral);
}
.gs-field.gs-has-error .gs-error-text {
    display: block;
}

/* Sensor rows */
.gs-sensor-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--warm-white);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.06);
}
.gs-sensor-row .gs-field {
    margin-bottom: 0;
}
.gs-sensor-row .gs-field label {
    margin-bottom: 0.25rem;
}
.gs-type-group {
    display: flex;
    gap: 0.4rem;
    padding-bottom: 0;
}
.gs-type-btn {
    padding: 0.55rem 1rem;
    border: 1px solid #D8DDE6;
    border-radius: var(--radius);
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.gs-type-btn:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}
.gs-type-btn.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.gs-remove-btn {
    padding: 0.55rem 0.7rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: none;
    cursor: pointer;
    color: var(--slate-light);
    font-size: 1.1rem;
    transition: all 0.15s;
    line-height: 1;
}
.gs-remove-btn:hover {
    color: var(--coral);
    background: var(--coral-light);
    border-color: var(--coral);
}
.gs-remove-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.gs-remove-btn:disabled:hover {
    color: var(--slate-light);
    background: none;
    border-color: transparent;
}
.gs-add-sensor {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px dashed var(--teal);
    border-radius: var(--radius);
    background: none;
    color: var(--teal-dark);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 0.25rem;
}
.gs-add-sensor:hover {
    background: var(--teal-glow);
}

/* Plan selection */
.gs-plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.gs-plan-btn {
    border: 2px solid #D8DDE6;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.95rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-primary);
}
.gs-plan-btn strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.gs-plan-btn span {
    font-size: 0.84rem;
    color: var(--text-secondary);
}
.gs-plan-btn:hover {
    border-color: var(--teal);
}
.gs-plan-btn.active {
    border-color: var(--teal);
    background: var(--teal-glow);
    box-shadow: inset 0 0 0 1px rgba(10, 186, 181, 0.2);
}
.gs-plan-btn.disabled,
.gs-plan-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.gs-plan-hint {
    min-height: 1.1rem;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--amber);
}

/* WiFi radio group */
.gs-wifi-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.gs-wifi-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #D8DDE6;
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.gs-wifi-btn:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}
.gs-wifi-btn.active {
    border-color: var(--teal);
    background: var(--teal-glow);
    color: var(--teal-dark);
}
.gs-wifi-btn .gs-wifi-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.gs-wifi-name-wrap {
    display: none;
}
.gs-wifi-name-wrap.visible {
    display: block;
}

/* Included features card */
.gs-included-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.gs-included-list .gs-included-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.gs-included-item .gs-check {
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Pricing panel */
.gs-pricing {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border: none;
}
.gs-pricing h2 {
    color: var(--white);
}
.gs-pricing-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.gs-pricing-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    opacity: 0.9;
}
.gs-pricing-line .gs-pricing-value {
    font-weight: 600;
}
.gs-pricing-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 0.75rem 0;
}
.gs-pricing-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
}
.gs-pricing-note {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 0.75rem;
}

/* Submit section */
.gs-submit-section {
    text-align: center;
    margin-top: 0.5rem;
}
.gs-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 2.5rem;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.gs-submit-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal);
}
.gs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.gs-terms {
    font-size: 0.8rem;
    color: var(--slate-light);
    margin-top: 0.75rem;
}
.gs-terms a {
    color: var(--teal-dark);
    text-decoration: none;
}
.gs-terms a:hover {
    text-decoration: underline;
}

/* Error banner */
.gs-error-banner {
    display: none;
    background: var(--coral-light);
    border: 1px solid var(--coral);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    color: var(--coral);
    font-weight: 500;
    font-size: 0.92rem;
}
.gs-error-banner.visible {
    display: block;
}

/* Success overlay */
.gs-success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(11, 29, 58, 0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.gs-success-overlay.visible {
    display: flex;
}
.gs-success-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: gsModalIn 0.3s ease;
}
@keyframes gsModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.gs-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.gs-success-modal h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.gs-success-modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.gs-success-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.gs-success-btn:hover {
    background: var(--teal-dark);
}

/* Footer (simple) */
.gs-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--slate-light);
    font-size: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    max-width: 720px;
    margin: 0 auto;
}
.gs-footer a {
    color: var(--teal-dark);
    text-decoration: none;
}
.gs-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .gs-page {
        padding: 5.5rem 1rem 2rem;
    }
    .gs-hero h1 {
        font-size: 1.8rem;
    }
    .gs-card {
        padding: 1.5rem 1.25rem;
    }
    .gs-row {
        grid-template-columns: 1fr;
    }
    .gs-sensor-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .gs-type-group {
        justify-content: flex-start;
    }
    .gs-remove-btn {
        justify-self: end;
    }
    .gs-included-list {
        grid-template-columns: 1fr;
    }
    .gs-plan-options {
        grid-template-columns: 1fr;
    }
}
