/* Premium Basvuru Form Style Override */

/* Wizard Form Card */
.gov-form.corp-card {
    background: #0c1e2f !important; /* Solid premium slate dark */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    padding: 0 !important; /* Let topbar take full width */
}

/* Background of basvuru sections */
#basvuru-bolum {
    background: radial-gradient(circle at top, #0f172a 0%, #090d16 100%) !important;
}

/* Global ReCAPTCHA badge hide fallback */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Secure Top Banner */
.gov-form-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.875rem !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.75rem !important;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .gov-form-topbar {
        margin: 0rem 0rem 1.75rem !important;
    }
}

.gov-form-topbar-icon {
    color: #8b5cf6 !important; /* Premium Violet */
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
}

.gov-form-topbar-title {
    font-weight: 700 !important;
    color: #ffffff !important;
}

.gov-form-topbar-sub {
    color: #94a3b8 !important; /* Muted slate */
}

.gov-form-topbar-badge {
    background: rgba(139, 92, 246, 0.25) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #c084fc !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* Force border-box sizing on all elements inside the form container to prevent padding overflow */
.gov-form.corp-card,
.gov-form.corp-card *,
.gov-form.corp-card *::before,
.gov-form.corp-card *::after {
    box-sizing: border-box !important;
}

/* Form Container Padding */
#basvuru-form {
    padding: 1.25rem 1rem !important;
}
@media (min-width: 768px) {
    #basvuru-form {
        padding: 2rem 2.25rem !important;
    }
}

/* Form Headings */
.form-section-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.form-section-head h3 {
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
}

.form-section-num {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
}

/* Inputs & Dropdowns */
.gov-form.corp-card .corp-input,
.gov-form.corp-card .corp-select,
.gov-form.corp-card select.corp-select,
.gov-form.corp-card input[type="text"].corp-select,
.gov-form.corp-card input[type="tel"].corp-select,
.gov-form.corp-card input[type="email"].corp-select {
    width: 100% !important;
    background: #0f172a !important; /* Solid premium slate dark */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.95rem 1.25rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* For inputs with left icon */
.gov-form.corp-card .corp-input {
    padding-left: 3rem !important;
}

.gov-form.corp-card .corp-input:focus,
.gov-form.corp-card .corp-select:focus,
.gov-form.corp-card select.corp-select:focus,
.gov-form.corp-card input.corp-select:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    background: #090d16 !important; /* Darker on focus */
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

/* Autofill override to prevent white input box */
.gov-form.corp-card input:-webkit-autofill,
.gov-form.corp-card input:-webkit-autofill:hover,
.gov-form.corp-card input:-webkit-autofill:focus,
.gov-form.corp-card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Placeholders */
.gov-form.corp-card .corp-input::placeholder,
.gov-form.corp-card .corp-select::placeholder {
    color: #64748b !important;
}

/* Wizard Steps (Dynamic) */
.wizard-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 2rem !important;
    background: rgba(30, 41, 59, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    padding: 0.875rem 1.25rem !important;
}

.wizard-step-dot {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #64748b !important;
    width: 2rem !important;
    height: 2rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.wizard-step-dot.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5) !important;
}

.wizard-step-dot.completed {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

.wizard-step-line {
    background: rgba(255, 255, 255, 0.08) !important;
    height: 2px !important;
    transition: all 0.3s ease !important;
}

.wizard-step-line.active {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6) !important;
}

/* Primary Button */
.corp-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px !important;
    padding: 1rem 1.75rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.corp-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.5) !important;
}

.corp-btn-primary:active {
    transform: translateY(0) !important;
}

/* Section labels */
.block.text-label-md {
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
}

/* Error message card styling */
#error-message {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    border-radius: 12px !important;
    padding: 1rem !important;
}

/* Responsive Grid for Package Cards */
#visual-package-selector {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#visual-package-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 0.75rem !important;
}

@media (min-width: 768px) {
    #visual-package-cards.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #visual-package-cards.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Premium Card Design */
.visual-package-card, .package-card {
    position: relative !important;
    background: #0a1b2a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    box-sizing: border-box !important;
    min-height: 160px !important;
    text-align: left !important;
}

.visual-package-card:hover, .package-card:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    background-color: #0d2236 !important;
}

/* Selected state - premium violet border-2 and shadow */
.visual-package-card.selected, .package-card.selected {
    border: 2px solid #8b5cf6 !important;
    background-color: rgba(139, 92, 246, 0.08) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25) !important;
}

/* Space out title content to avoid overlapping the absolute checkmark badge */
.visual-package-card-content {
    padding-right: 1.75rem !important;
}

/* Checkmark Indicator Circle */
.checkmark-indicator {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.visual-package-card.selected .checkmark-indicator, .package-card.selected .checkmark-indicator {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

.checkmark-indicator .check-icon {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.visual-package-card.selected .checkmark-indicator .check-icon, .package-card.selected .checkmark-indicator .check-icon {
    display: block !important;
}
