/* ===== CSS RESET & VARIABLES ===== */
:root {
    --primary: #f59e0b; /* Golden orange, fitting for construction */
    --primary-hover: #d97706;
    --secondary: rgba(255, 255, 255, 0.1);
    --secondary-hover: rgba(255, 255, 255, 0.2);
    
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #1e293b;
    
    --bg-overlay: rgba(15, 23, 42, 0.75); /* Dark slate blue */
    --panel-bg: rgba(30, 41, 59, 0.65);
    
    --error-bg: rgba(239, 68, 68, 0.2);
    --error-border: rgba(239, 68, 68, 0.5);
    --error-text: #fca5a5;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

/* ===== BACKGROUND & LAYOUT ===== */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/psznxs/site/media/6a88c3ca6f0090.64368503.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-overlay) 0%, rgba(2, 6, 23, 0.9) 100%);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CARD (GLASSMORPHISM) ===== */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 48px;
    margin-bottom: 40px; /* Space for powered-by */
    position: relative;
    overflow: hidden;
}

/* Decorative glow */
.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.card-header, .step-section, .status-box {
    position: relative;
    z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}

.subheadline {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.step-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-hover);
}

.btn-large {
    font-size: 1.125rem;
    padding: 16px 32px;
}

/* Social Buttons */
.social-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-social {
    color: white;
    font-weight: 500;
    justify-content: flex-start;
    padding: 16px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-facebook {
    background: rgba(24, 119, 242, 0.2);
}
.btn-facebook:hover { background: rgba(24, 119, 242, 0.8); }

.btn-instagram {
    background: rgba(225, 48, 108, 0.2);
}
.btn-instagram:hover { background: rgba(225, 48, 108, 0.8); }


.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.divider span {
    padding: 0 16px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    margin-top: 32px;
}

/* ===== ALERTS & MESSAGES ===== */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.status-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    font-size: 1.125rem;
}

/* ===== SUCCESS STATE ===== */
#step-success {
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    margin-bottom: 24px;
    border: 2px solid rgba(16, 185, 129, 0.4);
}

/* Share Panel */
.share-box {
    margin-top: 40px;
    padding: 32px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255,255,255,0.2);
}

.share-box h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 8px;
}

.share-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.share-input-group {
    display: flex;
    gap: 12px;
}

.share-input-group input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.share-input-group .btn {
    width: auto;
    white-space: nowrap;
}

/* ===== SDK FOOTER ===== */
#wbx-powered-by-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .glass-panel {
        padding: 32px 24px;
        border-radius: 20px;
        margin: 20px auto;
    }
    
    .headline { font-size: 2rem; }
    
    .form-actions {
        grid-template-columns: 1fr;
    }
    
    .btn-secondary { order: 2; }
    .btn-primary { order: 1; }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .share-input-group .btn {
        width: 100%;
    }
}