/* =============================================
   D-NOVA CONTACT PAGE - BMW PREMIUM STYLE
   Strona kontaktowa z mapš i formularzem
   ============================================= */

/* Main Container */
.contact-page {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    min-height: 100vh;
    padding: 140px 20px 60px;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =============================================
   HERO SECTION WITH VIDEO BACKGROUND
   ============================================= */

.contact-hero {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden;
    border-radius: 30px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Show video when loaded */
.hero-video.loaded {
    opacity: 1;
}

/* Dark overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(20, 20, 30, 0.75) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

/* Additional gradient overlay for depth */
.hero-video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

/* Hero Content (above video) */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(100, 150, 255, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff, rgba(100, 150, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* =============================================
   GRID LAYOUT
   ============================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
}

/* =============================================
   INFO CARDS
   ============================================= */

.info-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.9),
        rgba(30, 30, 30, 0.9)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header .card-title {
    margin: 0;
    font-size: 20px;
}

.map-link {
    color: rgba(100, 150, 255, 0.9);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: rgba(100, 150, 255, 1);
}

/* =============================================
   COMPANY CARD
   ============================================= */

.company-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
}

.detail-value a {
    color: rgba(100, 150, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value a:hover {
    color: rgba(100, 150, 255, 1);
}

/* Contact Actions */
.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.5);
    transform: translateY(-2px);
}

.action-btn .btn-icon {
    font-size: 24px;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
}

/* =============================================
   MAP CARD
   ============================================= */

.map-container {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.map-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.map-address strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

/* =============================================
   HOURS CARD
   ============================================= */

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.hours-day {
    font-size: 15px;
    color: #ffffff;
}

.hours-time {
    font-size: 14px;
    color: rgba(100, 150, 255, 0.9);
    font-weight: 600;
}

.hours-item.weekend .hours-time {
    color: rgba(255, 100, 100, 0.9);
}

/* =============================================
   CONTACT FORM
   ============================================= */

.form-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.9),
        rgba(30, 30, 30, 0.9)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.form-header {
    margin-bottom: 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.form-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.alert-success {
    background: rgba(100, 200, 100, 0.15);
    border: 1px solid rgba(100, 200, 100, 0.3);
    color: #64c864;
}

.alert-error {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6464;
}

.alert-icon {
    font-size: 20px;
}

/* Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 150, 255, 0.5);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.form-error {
    font-size: 13px;
    color: #ff6464;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.form-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg,
        rgba(100, 150, 255, 0.9),
        rgba(50, 100, 200, 0.9)
    );
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 150, 255, 0.4);
}

.btn-submit .btn-icon {
    font-size: 20px;
}

/* =============================================
   FAQ CARD
   ============================================= */

.faq-card {
    background: linear-gradient(135deg,
        rgba(20, 20, 20, 0.9),
        rgba(30, 30, 30, 0.9)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.faq-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 120px 15px 40px;
    }

    .contact-hero {
        min-height: 450px;
        padding: 60px 15px;
        border-radius: 20px;
    }

    .hero-video-container {
        border-radius: 20px;
    }

    .hero-icon {
        font-size: 48px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 400px;
        padding: 40px 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}
