/* ============================================
   AdGeo Contact Form - SALIENT THEME STYLE
   Passend zum 3D Hero Section Design
   ============================================ */

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

/* === HAUPTCONTAINER === */
.scf {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0F1A2A 0%, #1a2332 50%, #0F1A2A 100%);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* === 3D GRID HINTERGRUND === */
.scf::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotateX(60deg) translateZ(-100px);
    transform-style: preserve-3d;
    animation: gridFloat 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridFloat {
    0% {
        transform: rotateX(60deg) translateZ(-100px) translateY(0);
    }
    100% {
        transform: rotateX(60deg) translateZ(-100px) translateY(40px);
    }
}

/* === AMBIENT LICHTER === */
.scf::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: ambient1 15s infinite alternate ease-in-out;
}

/* Zweites Licht via Box-Shadow auf Card */
@keyframes ambient1 {
    0% {
        opacity: 0.8;
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-20px, 20px);
    }
    100% {
        opacity: 1;
        transform: scale(1.2) translate(0, 0);
    }
}

/* === KARTE MIT 3D EFFEKT === */
.scf-card {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 26, 42, 0.98) 100%);
    border: 1px solid rgba(233, 63, 127, 0.15);
    border-radius: 20px;
    padding: 32px 36px;
    max-width: 660px;
    width: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(233, 63, 127, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scf-card::before {
    content: "";
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(233, 63, 127, 0.12) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    animation: ambient2 15s infinite alternate ease-in-out;
}

@keyframes ambient2 {
    0% {
        opacity: 0.6;
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.15) translate(15px, -15px);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.25) translate(0, 0);
    }
}

.scf-card:hover {
    border-color: rgba(233, 63, 127, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(233, 63, 127, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateZ(30px) translateY(-5px);
}

/* === TITEL MIT NEON EFFEKT === */
.scf-title {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === BESCHREIBUNG === */
.scf-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* === 2-SPALTEN LAYOUT === */
.scf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* === FORMULARFELDER === */
.scf-field {
    margin-bottom: 18px;
}

.scf-row .scf-field {
    margin-bottom: 0;
}

.scf-field label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Pflichtfeld-Stern in Pink */
.scf-required {
    color: #E93F7F;
    margin-left: 3px;
    text-shadow: 0 0 10px rgba(233, 63, 127, 0.5);
}

.scf-optional {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

/* === INPUT FELDER MIT GLOW === */
.scf input[type="text"],
.scf input[type="email"],
.scf input[type="tel"],
.scf textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.scf input:hover,
.scf textarea:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.scf input:focus,
.scf textarea:focus {
    outline: none;
    border-color: rgba(233, 63, 127, 0.6);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 20px rgba(233, 63, 127, 0.15),
        0 0 40px rgba(233, 63, 127, 0.05);
}

.scf input::placeholder,
.scf textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

/* === FOOTER: CONSENT + BUTTON === */
.scf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === CHECKBOX CONSENT === */
.scf-consent {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    flex: 1;
}

.scf-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #E93F7F;
    border-radius: 4px;
}

.scf-consent span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.5;
}

.scf-consent a {
    color: #3B82F6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scf-consent a:hover {
    color: #E93F7F;
    text-shadow: 0 0 12px rgba(233, 63, 127, 0.5);
}

/* === SUBMIT BUTTON MIT NEON GLOW === */
.scf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scf-btn-submit {
    background: #E93F7F;
    color: #ffffff;
    box-shadow:
        0 4px 15px rgba(233, 63, 127, 0.3),
        0 0 30px rgba(233, 63, 127, 0.2);
}

.scf-btn-submit:hover:not(:disabled) {
    background: #d12e6a;
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(233, 63, 127, 0.4),
        0 0 50px rgba(233, 63, 127, 0.3);
}

.scf-btn-submit:active:not(:disabled) {
    transform: translateY(-1px);
}

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

/* === LOADING SPINNER === */
.scf-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.scf-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-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner 0.8s linear infinite;
}

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

/* === NACHRICHTEN MIT GLOW === */
.scf-msg {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.scf-msg.success {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.scf-msg.error {
    background: rgba(233, 63, 127, 0.1);
    border: 1px solid rgba(233, 63, 127, 0.3);
    color: #E93F7F;
    box-shadow: 0 0 20px rgba(233, 63, 127, 0.1);
}

/* === RESPONSIVE - TABLET === */
@media (max-width: 768px) {
    .scf {
        padding: 50px 20px;
    }

    .scf-card {
        padding: 28px 28px;
        max-width: 580px;
    }

    .scf-title {
        font-size: 24px;
    }
}

/* === RESPONSIVE - MOBILE === */
@media (max-width: 600px) {
    .scf {
        padding: 40px 16px;
    }

    .scf::before {
        display: none; /* Grid auf Mobile deaktivieren für Performance */
    }

    .scf-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .scf-title {
        font-size: 22px;
    }

    .scf-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .scf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .scf-row .scf-field {
        margin-bottom: 16px;
    }

    .scf input,
    .scf textarea {
        padding: 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .scf-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .scf-consent {
        order: 1;
    }

    .scf-btn-submit {
        order: 2;
        width: 100%;
        padding: 16px 24px;
    }
}

/* === KLEINE MOBILE GERÄTE === */
@media (max-width: 480px) {
    .scf {
        padding: 30px 12px;
    }

    .scf-card {
        padding: 20px 16px;
    }

    .scf-title {
        font-size: 20px;
    }

    .scf-btn-submit {
        font-size: 14px;
    }
}

/* === ACCESSIBILITY === */
.scf *:focus-visible {
    outline: 2px solid #E93F7F;
    outline-offset: 3px;
}

/* === SCROLLBAR === */
.scf textarea::-webkit-scrollbar {
    width: 6px;
}

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

.scf textarea::-webkit-scrollbar-thumb {
    background: rgba(233, 63, 127, 0.3);
    border-radius: 3px;
}

.scf textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 63, 127, 0.5);
}

/* === PERFORMANCE - REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .scf::before,
    .scf::after,
    .scf-card::before {
        animation: none !important;
    }

    .scf-card,
    .scf-btn,
    .scf input,
    .scf textarea {
        transition: none !important;
    }

    .scf-btn.loading::after {
        animation: none;
    }
}

/* === PRINT STYLES === */
@media print {
    .scf {
        background: #ffffff;
        color: #000000;
    }

    .scf::before,
    .scf::after,
    .scf-card::before {
        display: none;
    }

    .scf-card {
        background: #ffffff;
        border: 1px solid #cccccc;
        box-shadow: none;
    }
}
