/* ==========================================================================
   BENTO GRID PREMIUM CONTACT STYLES - BYKINE DESIGN SYSTEM
   ========================================================================== */

.contact-page-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 10rem 1.5rem 6rem;
    display: flex;
    align-items: center;
}

/* Background Canvas & Interactive Particles */
.contact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating Gradient Orbs */
.contact-bg-orb-1,
.contact-bg-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

.contact-bg-orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 75%);
}

.contact-bg-orb-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 75%);
    animation-delay: -6s;
}

/* Page Intro Header */
.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 2;
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.contact-header h1 .highlight-text {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.contact-header p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   BENTO GRID SYSTEM
   ========================================================================== */

.contact-bento-grid {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

/* Core Bento Card */
.bento-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .bento-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.35) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
    border-color: rgba(124, 58, 237, 0.15) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .bento-card:hover {
    border-color: rgba(124, 58, 237, 0.45) !important;
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.15) !important;
}

/* Bento Card Grid Positioning */
.bento-card-form {
    grid-column: span 2;
    grid-row: span 3;
}

.bento-card-mail {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card-whatsapp {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card-location {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-card-benefits {
    grid-column: span 3;
    grid-row: span 1;
}

/* Bento Header/Labels */
.bento-card .bento-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-card h3.bento-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Bento Card Specific Contents */
.bento-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover .bento-icon {
    transform: scale(1.15) rotate(5deg);
}

.bento-card-mail:hover .bento-icon {
    color: #7c3aed;
}

.bento-card-whatsapp:hover .bento-icon {
    color: #10b981;
}

/* Copy E-Mail Card & Clipboard Button */
.bento-mail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.bento-email-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    word-break: break-all;
}

.bento-copy-btn {
    align-self: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.bento-copy-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.bento-copy-btn.copied {
    background: #10b981;
    color: white;
    border-color: transparent;
}

/* WhatsApp Card Link */
.bento-whatsapp-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: color 0.3s;
}

.bento-whatsapp-link:hover {
    color: #10b981;
}

.bento-whatsapp-link span.arrow {
    transition: transform 0.3s;
}

.bento-whatsapp-link:hover span.arrow {
    transform: translateX(4px);
}

/* Location Status & Pulse Dot */
.bento-location-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: dotPulse 2s infinite;
}

/* Benefits Card Dark Container */
.bento-card-benefits {
    grid-column: span 3;
    grid-row: span 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4) !important;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 3rem !important;
}

.bento-card-benefits::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.bento-card-benefits .bento-label {
    color: #a7f3d0 !important;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bento-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
}

.bento-benefit-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bento-benefit-item .benefit-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bento-benefit-item .benefit-emoji {
    font-size: 1.4rem;
}

.bento-benefit-item h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0;
}

.bento-benefit-item p {
    font-size: 0.95rem;
    color: #94a3b8 !important;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   FORM DETAILS INSIDE FORM BENTO
   ========================================================================== */

.modern-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.modern-form-group input,
.modern-form-group textarea {
    width: 100%;
    padding: 1.05rem 1.3rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .modern-form-group input,
[data-theme="dark"] .modern-form-group textarea {
    background: rgba(15, 23, 42, 0.55);
}

.modern-form-group input::placeholder,
.modern-form-group textarea::placeholder {
    color: #a1a1aa;
}

.modern-form-group input:focus,
.modern-form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

[data-theme="dark"] .modern-form-group input:focus,
[data-theme="dark"] .modern-form-group textarea:focus {
    background: rgba(9, 13, 22, 0.85);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.modern-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Custom Premium Select Dropdown */
.modern-form-group select {
    width: 100%;
    padding: 1.05rem 1.3rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.3rem center;
    background-size: 1.2rem;
}

.modern-form-group select option {
    background-color: #ffffff;
    color: #18181b;
    padding: 0.75rem;
}

[data-theme="dark"] .modern-form-group select {
    background-color: rgba(15, 23, 42, 0.55);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a78bfa' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
}

[data-theme="dark"] .modern-form-group select option {
    background-color: #0f172a;
    color: #f4f4f5;
}

.modern-form-group select:focus {
    outline: none;
    border-color: #7c3aed;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

[data-theme="dark"] .modern-form-group select:focus {
    background-color: rgba(9, 13, 22, 0.85);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Configurator selection block */
.configurator-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.6rem;
    margin-bottom: 0.7rem;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.pill-choice {
    position: relative;
    cursor: pointer;
}

.pill-choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pill-span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    user-select: none;
}

[data-theme="dark"] .pill-span {
    background: rgba(30, 41, 59, 0.4);
}

.pill-choice:hover .pill-span {
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.pill-choice input:checked + .pill-span {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* DSGVO Box */
.dsgvo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1.8rem 0;
}

.dsgvo-checkbox input {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.dsgvo-checkbox label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    background-size: 200% auto !important;
    color: white !important;
    border: none !important;
    padding: 1.1rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3) !important;
}

.contact-submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45) !important;
    background-position: right center !important;
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translate(3px, -2px);
}

/* ==========================================================================
   SUCCESS OVERLAY
   ========================================================================== */

.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    z-index: 10;
    text-align: center;
    animation: successFadeIn 0.5s forwards ease-out;
}

[data-theme="dark"] .success-overlay {
    background: var(--bg-secondary);
}

.success-ring-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 2rem;
}

.success-ring-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: inset 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.success-sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkleAnim 1.5s infinite ease-in-out alternate;
}

.sparkle-1 { top: -5px; left: -5px; animation-delay: 0.2s; }
.sparkle-2 { bottom: -5px; right: -5px; animation-delay: 0.7s; }

.success-overlay h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.success-overlay p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 450px;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

@keyframes dotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes successFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes sparkleAnim {
    from { transform: scale(0.8) rotate(0deg); opacity: 0.4; }
    to { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES (TABLETS & PHONES)
   ========================================================================== */

@media (max-width: 1024px) {
    .contact-page-wrapper {
        padding: 9rem 1.5rem 5rem;
    }

    .contact-header h1 {
        font-size: 3rem;
    }

    .contact-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    .bento-card-form {
        grid-column: span 2;
        grid-row: auto;
    }

    .bento-card-mail {
        grid-column: span 1;
        grid-row: auto;
    }

    .bento-card-whatsapp {
        grid-column: span 1;
        grid-row: auto;
    }

    .bento-card-location {
        grid-column: span 2;
        grid-row: auto;
        min-height: 150px;
    }

    .bento-card-benefits {
        grid-column: span 2;
        grid-row: auto;
    }
    
    .bento-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 8rem 1rem 4rem;
    }

    .contact-header h1 {
        font-size: 2.3rem;
    }

    .contact-header p.lead {
        font-size: 1.05rem;
    }

    .contact-bento-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .bento-card-form,
    .bento-card-mail,
    .bento-card-whatsapp,
    .bento-card-location,
    .bento-card-benefits {
        grid-column: span 1;
    }

    .bento-card {
        padding: 1.8rem;
    }

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