/* Contact Hero */
.contact-hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: top;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: 2;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #1a0020, #000);
    position: relative;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    grid-row: 1 / 3;
    display: grid;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-block:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: translateY(-5px);
}

.info-block h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form-container {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact-form {
    display: grid;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--gold-color);
    border-radius: 5px;
}

#contact-form button {
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contact-form button:hover {
    background: var(--secondary-color);
}

.contact-map {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    /*aspect-ratio: 16/9;*/
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 5s;
}

.toast.error {
    background: #ff4d4d;
}

@keyframes fadeInOut {
    0% { opacity: 0; bottom: 0; }
    10% { opacity: 1; bottom: 20px; }
    90% { opacity: 1; bottom: 20px; }
    100% { opacity: 0; bottom: 0; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }

    .contact-info {
        grid-row: 1 / 2;
    }

    .contact-form-container {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .contact-map {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        /*aspect-ratio: 4/3;*/
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 40vh;
    }
}
/* CAPTCHA Container Styling */
.captcha-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 5px;
}

.captcha-container label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.captcha-container input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-medium);
}

.captcha-container input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

/* Hide number spinner buttons for different browsers */
.captcha-container input[type="number"]::-webkit-inner-spin-button, 
.captcha-container input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.captcha-container input[type="number"] {
    -moz-appearance: textfield;
}

/* Toast notification styling */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    border-radius: 5px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 350px;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 3px solid #4CAF50;
}

.toast.error {
    border-left: 3px solid #F44336;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #4CAF50;
}

.toast.error i {
    color: #F44336;
}

@media (max-width: 576px) {
    .toast {
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
}