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

:root {
    --primary-color: #f97316;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(249, 115, 22, 0.4);
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-input: #1f1f1f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.form-wrapper {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.form-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    gap: 8px;
}

.title-main {
    font-size: 3.5em;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.title-sub {
    font-size: 1.4em;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1em;
}

.form-section {
    margin-bottom: 40px;
    padding: 0;
}

.section-title {
    font-size: 1.3em;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(249, 115, 22, 0.3);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95em;
}

.required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(249, 115, 22, 0.6);
    background: #252525;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

input[type="text"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23f97316' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 6px;
    user-select: none;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.radio-label:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--primary-color);
}

.radio-label:has(input[type="radio"]:checked) {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label span {
    user-select: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--primary-color);
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
}

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

.checkbox-label span {
    user-select: none;
}

.form-actions {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: scale(0.98);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px;
    }
    
    .title-main {
        font-size: 2.5em;
    }
    
    .title-sub {
        font-size: 1.1em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .form-wrapper {
        padding: 24px;
    }
    
    .title-main {
        font-size: 2em;
    }
    
    .title-sub {
        font-size: 0.9em;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.1em;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

/* Full Screen Thanks Message */
.thanks-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.thanks-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.thanks-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.thanks-title {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 20px;
}

.thanks-message {
    font-size: 1.2em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.thanks-submessage {
    font-size: 1em;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .thanks-content {
        padding: 30px;
    }
    
    .thanks-icon {
        font-size: 60px;
    }
    
    .thanks-title {
        font-size: 2em;
    }
    
    .thanks-message {
        font-size: 1.1em;
    }
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

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