:root {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --secondary: #10b981;
    --accent: #f59e0b;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-main: #f3f4f6;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --error: #ef4444;
    --success: #10b981;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 10vh;
    display: flex;
    flex-direction: column;
}

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

/* Split Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    flex: 1;
    min-height: 40vh;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/y2pydy/site/media/6a72388cf04cb4.75405908.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    overflow: hidden;
}

@media (min-width: 900px) {
    .hero-section {
        min-height: 100vh;
        flex: 1.2;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

/* Logo Placeholder styling */
.square-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 900px) {
    .square-logo {
        width: 140px;
    }
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 900px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Form Section */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    background-color: var(--bg-main);
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .form-section {
        padding: 3rem;
        max-height: 100vh;
        overflow-y: auto;
    }
}

.form-container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .form-row {
        flex-direction: row;
    }
    .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }
}

.highlight-group {
    background: rgba(234, 88, 12, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(234, 88, 12, 0.1);
    margin-bottom: 1.5rem;
}

.highlight-group label {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.highlight-group input {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    border-color: rgba(234, 88, 12, 0.3);
}

/* Office Switch */
.office-switch {
    display: flex;
    background: var(--bg-main);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.office-switch input[type="radio"] {
    display: none;
}

.office-switch label {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.office-switch input[type="radio"]:checked + label {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.required {
    color: var(--error);
    margin-left: 0.125rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #c2410c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Alerts & States */
.error-alert {
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #f87171;
}

.status-card {
    text-align: center;
    padding: 2rem 0;
}

.status-card h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Share Panel */
.share-panel {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.share-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.share-input-group {
    display: flex;
    margin-top: 1rem;
}

.share-input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #fff;
}

.share-input-group button {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 0 1.25rem;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.share-input-group button:hover {
    background: #000;
}

/* Footer */
.footer {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

#wbx-powered-by-slot {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}