/* AdGeo Contact Form - Neon Holographic Design */

:root {
    --neon-cyan: #00F5FF;
    --neon-purple: #7B2FFF;
    --neon-pink: #FF0080;
    --neon-green: #00FF88;
    --dark-bg: #0A0B1A;
    --dark-card: rgba(22, 24, 37, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 245, 255, 0.3);
}

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

body {
    background: linear-gradient(180deg, #0A0B1A 0%, #0E0F1E 50%, #0A0B1A 100%);
    min-height: 100vh;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Orbs */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.floating-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--neon-cyan), transparent);
    top: -100px;
    right: -100px;
    opacity: 0.15;
    animation: float 15s ease-in-out infinite;
}

.floating-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    bottom: -50px;
    left: -50px;
    opacity: 0.12;
    animation: float 20s ease-in-out infinite reverse;
}

.floating-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--neon-pink), transparent);
    top: 50%;
    left: 50%;
    opacity: 0.08;
    animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.15;
    }
    50% {
        transform: translate(40px, -50px);
        opacity: 0.2;
    }
}

.scf {
    max-width: 650px;
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.scf-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    box-shadow:
        0 0 40px rgba(0, 245, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.scf-card:hover {
    border-color: var(--border-glow);
    box-shadow:
        0 10px 60px rgba(0, 245, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scf h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(123, 47, 255, 0.5));
    }
}

.scf-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Progress Bar */
.scf-progress {
    margin-bottom: 2.5rem;
}

.scf-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.scf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.scf-progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.scf-progress-text .scf-current-step {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* Steps */
.scf-step {
    display: none;
}

.scf-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scf-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.scf-field {
    margin-bottom: 1.5rem;
}

.scf-field label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.scf-field label .optional {
    color: rgba(160, 160, 184, 0.6);
    font-weight: 400;
    font-size: 0.85rem;
}

.scf input[type="text"],
.scf input[type="email"],
.scf input[type="url"],
.scf input[type="tel"],
.scf select,
.scf textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 11, 26, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.scf input[type="text"]:hover,
.scf input[type="email"]:hover,
.scf input[type="url"]:hover,
.scf input[type="tel"]:hover,
.scf select:hover,
.scf textarea:hover {
    border-color: rgba(0, 245, 255, 0.3);
}

.scf input[type="text"]:focus,
.scf input[type="email"]:focus,
.scf input[type="url"]:focus,
.scf input[type="tel"]:focus,
.scf select:focus,
.scf textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 0 3px rgba(0, 245, 255, 0.1),
        0 0 20px rgba(0, 245, 255, 0.2);
}

.scf input::placeholder,
.scf textarea::placeholder {
    color: rgba(160, 160, 184, 0.5);
}

.scf select {
    cursor: pointer;
    appearance: none;
    background-color: rgba(10, 11, 26, 0.6) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2300F5FF' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.scf select option {
    background: #161825 !important;
    color: var(--text-primary) !important;
    padding: 0.8rem;
}

.scf textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Checkbox Group */
.scf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scf-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.875rem 1rem;
    background: rgba(10, 11, 26, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scf-checkbox:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.2);
}

.scf-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--neon-cyan);
}

.scf-checkbox span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    user-select: none;
    transition: color 0.3s ease;
}

.scf-checkbox input[type="checkbox"]:checked + span {
    color: var(--text-primary);
    font-weight: 600;
}

.scf-checkbox.checked {
    background: rgba(0, 245, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

/* Radio Group */
.scf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scf-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.875rem 1rem;
    background: rgba(10, 11, 26, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scf-radio:hover {
    background: rgba(123, 47, 255, 0.05);
    border-color: rgba(123, 47, 255, 0.2);
}

.scf-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--neon-purple);
}

.scf-radio span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    user-select: none;
    transition: color 0.3s ease;
}

.scf-radio input[type="radio"]:checked + span {
    color: var(--text-primary);
    font-weight: 600;
}

.scf-radio.checked {
    background: rgba(123, 47, 255, 0.08);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(123, 47, 255, 0.15);
}

/* Consent Checkbox */
.scf-consent {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    background: rgba(10, 11, 26, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scf-consent:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
}

.scf-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--neon-green);
}

.scf-consent span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    user-select: none;
}

.scf-consent.checked {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.scf-consent.checked span {
    color: var(--text-primary);
}

/* Navigation Buttons */
.scf-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.scf-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.scf-btn-back {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.scf-btn-back:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.scf-btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scf-btn-next,
.scf-btn-submit {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--text-primary);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.scf-btn-next:hover:not(:disabled),
.scf-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

.scf-btn-next:disabled,
.scf-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.scf-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.scf-msg.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1.5px solid var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

.scf-msg.error {
    background: rgba(255, 0, 128, 0.1);
    border: 1.5px solid var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    }
}

/* Loading State */
.scf-btn.loading {
    position: relative;
    color: transparent;
}

.scf-btn.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spinner 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .scf {
        margin: 1rem auto;
        padding: 0.5rem;
    }

    .scf-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .scf h1 {
        font-size: 1.5rem;
    }

    .scf-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .scf-step-title {
        font-size: 1.1rem;
    }

    .scf-field {
        margin-bottom: 1.25rem;
    }

    .scf input[type="text"],
    .scf input[type="email"],
    .scf input[type="url"],
    .scf input[type="tel"],
    .scf select,
    .scf textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .scf-checkbox,
    .scf-radio {
        padding: 0.75rem 0.875rem;
    }

    .scf-consent {
        padding: 0.875rem;
    }

    .scf-navigation {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .scf-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .floating-orb-1 {
        width: 250px;
        height: 250px;
    }

    .floating-orb-2 {
        width: 200px;
        height: 200px;
    }

    .floating-orb-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .scf-card {
        padding: 1.5rem 1rem;
    }

    .scf h1 {
        font-size: 1.3rem;
    }

    .scf-subtitle {
        font-size: 0.85rem;
    }

    .scf-field label {
        font-size: 0.9rem;
    }

    .scf-checkbox span,
    .scf-radio span {
        font-size: 0.875rem;
    }

    .scf-consent span {
        font-size: 0.8rem;
    }

    .scf-navigation {
        flex-direction: column;
    }

    .scf-btn {
        width: 100%;
    }
}

/* Custom Scrollbar */
.scf textarea::-webkit-scrollbar {
    width: 6px;
}

.scf textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.scf textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, 0.3);
    border-radius: 3px;
}

.scf textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 255, 0.5);
}

/* Focus Visible for Accessibility */
.scf *:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
