@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #0c0d0f;
    --card-bg: rgba(22, 23, 27, 0.95);
    --card-border: rgba(242, 169, 0, 0.1);
    --primary: #f2c900; /* Vibrant Taxi Yellow */
    --primary-hover: #d9b400;
    --primary-glow: rgba(242, 201, 0, 0.2);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --input-bg: #16171a;
    --input-border: #2c2f36;
    --input-focus: #f2c900;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --success: #10b981;
    
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(242, 201, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(242, 201, 0, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #2c2f36;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

/* Header & Logo styling */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    display: inline-block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 20px rgba(242, 201, 0, 0.25));
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.header h1 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Form Layout Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .span-full {
        grid-column: span 2;
    }
}

/* Form Group styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.025em;
}

.form-group label span.required {
    color: var(--primary);
    margin-left: 0.25rem;
}

.form-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-control:hover {
    border-color: #404552;
}

.form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: rgba(22, 23, 27, 0.6);
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Select Control */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

select.form-control option {
    background-color: #16171b;
    color: var(--text-main);
    padding: 0.5rem;
}

/* Help text / hints */
.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.help-text.warning {
    color: var(--primary);
}

/* Checkbox and toggle container */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.toggle-group:hover {
    background: rgba(255, 255, 255, 0.04);
}

.toggle-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toggle-text label {
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.toggle-text .toggle-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.toggle-select {
    width: 90px !important;
    text-align: center;
    padding: 0.5rem 1.5rem 0.5rem 0.75rem !important;
}

/* Terms and Conditions links */
.tc-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.2s;
}

.tc-link:hover {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
}

/* Submit Actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #0c0d0f;
    border: none;
    border-radius: 10px;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(242, 201, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .btn-primary {
        width: auto;
    }
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 201, 0, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #2c2f36;
    color: #6b7280;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.required-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Custom CSS Alert replacement styling (for UI consistency if errors are output) */
.form-alert {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-alert.error {
    background-color: var(--danger-bg);
    border: 1px solid rgba(239, 108, 108, 0.2);
    color: #fca5a5;
}

/* Pulse animation for key items */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(242, 201, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(242, 201, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 201, 0, 0); }
}

.pulse-primary {
    animation: pulse 2s infinite;
}
