:root {
    --primary: #f97316; /* Orange */
    --primary-hover: #ea580c;
    --secondary: #6366f1; /* Purple */
    --bg-color: #111827; /* Dark Gray/Black */
    --surface: #1f2937;
    --surface-light: #374151;
    --text-light: #f97316; /* Changed to Orange */
    --text-muted: #fdba74; /* Changed to Light Orange for contrast */
    --border: #4b5563;
    --error: #ef4444;
    --success: #10b981;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --border-radius: 16px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top, #1f2937, #111827);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Cards */
.card {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(249, 115, 22, 0.2); /* Tinted border orange */
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

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

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

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

input::placeholder {
    color: rgba(249, 115, 22, 0.5); /* Orange placeholder */
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f97316' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select option {
    background-color: var(--surface);
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--bg-color); /* Dark text instead of white on orange button */
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

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

.btn-secondary {
    padding: 12px 24px;
    background: var(--surface-light);
    color: var(--primary); /* Orange instead of white */
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(17, 24, 39, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.status-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
}

/* Success Section */
#success-section {
    text-align: center;
}

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

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

.success-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary); /* Orange instead of white */
}

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

/* Share Panel */
.share-panel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.share-panel h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 8px;
}

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

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

.share-input-group input {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary);
    font-weight: 500;
}

/* Powered by slot */
#wbx-powered-by-slot {
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .card {
        padding: 30px 20px;
    }
}