:root {
    --primary: #e45933;
    --primary-hover: #c94b29;
    --primary-light: #fcece8;
    --secondary: #111827;
    --accent: #f59e0b;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --success: #10b981;
    --radius: 16px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(228, 89, 51, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Main Container */
.main-container {
    max-width: 800px;
    width: 100%;
    margin: -60px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px -10px rgba(17, 24, 39, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.req {
    color: var(--error);
}

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

input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* File Drop Zone */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: #f9fafb;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.drop-zone-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.drop-zone-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.file-item svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.file-item .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.file-item .file-size {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(228, 89, 51, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228, 89, 51, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--secondary);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    width: auto;
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    animation: rotate 2s linear infinite;
    margin-left: 10px;
}
.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 */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

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

/* Success Card */
.success-card {
    text-align: center;
    padding: 60px 40px;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.success-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.success-card p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.share-panel {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.share-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.share-panel p {
    font-size: 1rem;
    margin-bottom: 16px;
}

.share-box {
    display: flex;
    gap: 10px;
}

.share-box input {
    flex: 1;
    background: #fff;
}

.success-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.success-actions p {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Powered By Slot Padding */
#wbx-powered-by-slot {
    margin: 40px auto 20px;
    display: flex;
    justify-content: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 80px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .main-container {
        margin-top: -40px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .share-box {
        flex-direction: column;
    }
}
