/**
 * Kontakt Page Specific Styles
 */

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* ===================================
   CONTACT CARDS
   =================================== */
.contact-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.contact-card .icon {
    transition: all 0.3s ease;
}

.contact-card:hover .icon {
    transform: scale(1.15);
}

.contact-card:hover .icon i {
    animation: pulse 1s infinite;
}

.contact-card a {
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color) !important;
}

/* Social Links */
.social-links .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links .btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form-section .card {
    border-radius: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-label .text-danger {
    font-size: 1.2em;
}

/* Form Validation States */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Success/Error Messages */
#successMessage,
#errorMessage {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   MAP SECTION
   =================================== */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* ===================================
   OPENING HOURS
   =================================== */
.opening-hours-section {
    position: relative;
    overflow: hidden;
}

.opening-hours-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.opening-hours-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.opening-hours-section .container {
    position: relative;
    z-index: 2;
}

.opening-hours-section .card {
    border-radius: 1rem;
}

.opening-hours-section .table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.opening-hours-section .table tbody tr:last-child td {
    border-bottom: none;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 768px) {
    .contact-card {
        margin-bottom: 1rem;
    }

    .map-container {
        height: 300px !important;
    }

    .social-links .btn {
        width: 40px;
        height: 40px;
    }

    .opening-hours-section .table td {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .contact-card .icon i {
        font-size: 2rem !important;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.875rem;
    }
}
