/* Contact Page Specific Styles */

/* Active navigation link */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Contact Hero Section */
.contact-hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contact Main Section */
.contact-main {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Image Styles - dodajte ovo u contact.css */

.contact-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-main-image {
    width: 100%; /* Slika će zauzeti punu širinu kontejnera */
    max-width: 800px; /* Maksimalna širina slike */
    height: auto; /* Zadržava proporcije */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Alternativno - fiksna veličina */
.contact-main-image.fixed-size {
    width: 600px; /* Specifična širina */
    height: 400px; /* Specifična visina */
    object-fit: cover; /* Pokriva cijeli prostor bez distorzije */
}

/* Alternativno - povećanje u postocima */
.contact-main-image.larger {
    width: 120%; /* 20% veće od kontejnera */
    max-width: none; /* Uklanja ograničenje */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-image-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .contact-image-container {
        padding: 15px;
    }
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card,
.quick-links-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card h3,
.quick-links-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
}

.info-content h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Quick Links Card */
.booking-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.booking-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.social-contact {
    text-align: center;
}

.social-contact h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-contact .social-links {
    justify-content: center;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 50px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 20px 30px;
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.modal .btn {
    margin: 20px 30px 30px;
    width: calc(100% - 60px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading State */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-section {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-section,
    .contact-info-card,
    .quick-links-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .contact-main {
        padding: 60px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-section h2 {
        font-size: 1.7rem;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-section h2 {
        font-size: 2rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .contact-form-section,
    .contact-info-card,
    .quick-links-card {
        padding: 20px;
    }
    
    .contact-form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal .btn {
        margin: 15px 20px 20px;
        width: calc(100% - 40px);
    }
}