/* AdGeo Contact Form - Kompaktes 2-Spalten Layout */

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

/* Main Container */
.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: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* Grid Pattern Background */
.scf::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Ambient Glow */
.scf::after {
    content: "";
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 255, 46, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Card - breiter für 2 Spalten */
.scf-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.scf-card:hover {
    border-color: rgba(196, 255, 46, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

/* Title */
.scf-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* Description - kompakter */
.scf-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 2-Spalten Row */
.scf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Fields */
.scf-field {
    margin-bottom: 16px;
}

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

.scf-field label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.scf-required {
    color: #C4FF2E;
    margin-left: 2px;
}

.scf-optional {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-size: 12px;
}

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

.scf input:hover,
.scf textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.scf input:focus,
.scf textarea:focus {
    outline: none;
    border-color: rgba(196, 255, 46, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 16px rgba(196, 255, 46, 0.1);
}

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

.scf textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    line-height: 1.5;
}

/* Footer: Consent + Button nebeneinander */
.scf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Consent Checkbox */
.scf-consent {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    flex: 1;
}

.scf-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #C4FF2E;
}

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

.scf-consent a {
    color: #C4FF2E;
    text-decoration: none;
    transition: all 0.2s ease;
}

.scf-consent a:hover {
    text-shadow: 0 0 8px rgba(196, 255, 46, 0.4);
}

/* Submit Button */
.scf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.scf-btn-submit {
    background: #C4FF2E;
    color: #000000;
    box-shadow: 0 0 24px rgba(196, 255, 46, 0.2);
}

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

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

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

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

.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(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #000000;
    animation: spinner 0.8s linear infinite;
}

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

/* Messages */
.scf-msg {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.scf-msg.success {
    background: rgba(196, 255, 46, 0.1);
    border: 1px solid rgba(196, 255, 46, 0.25);
    color: #C4FF2E;
}

.scf-msg.error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.25);
    color: #ff6464;
}

/* Responsive - Mobile: 1 Spalte */
@media (max-width: 600px) {
    .scf {
        padding: 40px 16px;
    }

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

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

    .scf-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

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

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

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

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

    .scf-consent {
        order: 1;
    }

    .scf-btn-submit {
        order: 2;
        width: 100%;
    }
}

/* Focus Visible for Accessibility */
.scf *:focus-visible {
    outline: 2px solid #C4FF2E;
    outline-offset: 2px;
}

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

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

.scf textarea::-webkit-scrollbar-thumb {
    background: rgba(196, 255, 46, 0.25);
    border-radius: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scf-card,
    .scf-btn,
    .scf input,
    .scf textarea {
        transition: none;
    }

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