/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: linear-gradient(135deg, #E63946 0%, #0284C7 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%);
    animation: mesh-move 10s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Header animacija */
@keyframes mesh-move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

/* ========================================
   CONTACT SECTION BACKGROUND EFFECTS
   ======================================== */

.contact-section {
    position: relative;
    overflow-x: hidden;
}

.contact-section::before,
.contact-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.contact-section::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
    top: 15%;
    right: 5%;
    filter: blur(60px);
}

.contact-section::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    filter: blur(55px);
}

/* ========================================
   CONTENT LAYER
   ======================================== */

.contact-grid {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper h2,
.contact-info-card h3 {
    background: linear-gradient(135deg, #E63946 0%, #0EA5E9 100%);
   -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   FORM FOCUS
   ======================================== */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #E63946;
    box-shadow:
        0 0 0 3px rgba(230, 57, 70, 0.1),
        0 0 0 6px rgba(14, 165, 233, 0.05);
}

/* ========================================
   INFO CARDS
   ======================================== */

.contact-info-card,
.contact-map {
    position: relative;
    z-index: 1;
    border: 2px solid rgba(230, 57, 70, 0.15);
    transition: all 0.4s ease;
}

.contact-info-card::before,
.contact-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(230, 57, 70, 0.03),
        rgba(14, 165, 233, 0.03)
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-info-card:hover,
.contact-map:hover {
    border-color: #E63946;
    box-shadow:
        0 15px 35px rgba(230, 57, 70, 0.12),
        0 15px 35px rgba(14, 165, 233, 0.12);
    transform: translateY(-5px);
}

.contact-info-card:hover::before,
.contact-map:hover::before {
    opacity: 1;
}

/* ========================================
   ICONS
   ======================================== */

.info-icon {
    background: linear-gradient(
        135deg,
        rgba(255, 229, 232, 0.8),
        rgba(224, 242, 254, 0.8)
    );
    color: #E63946;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: linear-gradient(135deg, #E63946 0%, #0EA5E9 100%);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 8px 20px rgba(230, 57, 70, 0.2),
        0 8px 20px rgba(14, 165, 233, 0.2);
}

/* ========================================
   BUTTON
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #E63946 0%, #0EA5E9 100%) !important;
    box-shadow:
        0 4px 15px rgba(230, 57, 70, 0.25),
        0 4px 15px rgba(14, 165, 233, 0.15);
}

.btn-primary:hover {
    box-shadow:
        0 8px 30px rgba(230, 57, 70, 0.35),
        0 8px 30px rgba(14, 165, 233, 0.25);
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */

.form-message.success {
    background: linear-gradient(
        135deg,
        rgba(255, 229, 232, 0.3),
        rgba(209, 250, 229, 0.3)
    );
    border: 2px solid;
    border-image: linear-gradient(135deg, #E63946, #10B981) 1;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .contact-section::before {
        width: 300px;
        height: 300px;
    }

    .contact-section::after {
        width: 250px;
        height: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-section::before {
        width: 200px;
        height: 200px;
        top: 10%;
    }

    .contact-section::after {
        width: 180px;
        height: 180px;
        bottom: 15%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
     .footer-sections {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
    }

    .footer-column {
        flex: 1;
        text-align: center;
    }

    @keyframes mesh-move {
        0% { transform: translate(0, 0) scale(1); }
        100% { transform: translate(10px, -10px) scale(1.05); }
    }
}

/* Small phones */
@media (max-width: 576px) {
    .contact-section::before,
    .contact-section::after {
        display: none;
    }

    .page-header::before {
        animation: none;
        opacity: 0.6;
    }
}

/* Touch devices – disable hover effects */
@media (hover: none) {
    .contact-info-card:hover,
    .contact-map:hover,
    .info-item:hover .info-icon {
        transform: none;
        box-shadow: none;
    }

    .contact-info-card:hover::before,
    .contact-map:hover::before {
        opacity: 0;
    }
}
/* ========================================
   ULTRA SMALL SCREENS (≤ 320px)
   Radi za 246x470
   ======================================== */

@media (max-width: 320px) {

    /* GLOBAL */
    body {
        overflow-x: hidden;
    }

    /* HEADER */
    .page-header {
        padding: 48px 12px;
    }

    .page-header::before {
        display: none;
    }

    /* CONTACT SECTION */
    .contact-section {
        padding: 40px 12px;
    }

    .contact-section::before,
    .contact-section::after {
        display: none;
    }

    /* GRID */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* CARDS */
    .contact-info-card,
    .contact-map {
        padding: 16px;
        border-radius: 16px;
        transform: none !important;
        box-shadow: none;
    }

    /* HEADINGS */
    .contact-form-wrapper h2,
    .contact-info-card h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    /* FORM */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* BUTTON */
    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* ICONS */
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        box-shadow: none;
    }

    /* MAP */
    .contact-map iframe {
        height: 220px;
    }
}
