/* =========================================
   CONTACT PAGE STYLES (contactcss.css)
   ========================================= */

/* --- Main Layout & Interactive Background --- */
.contact-section {
    min-height: 100vh;
    padding: 150px 5% 100px 5%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at bottom right, rgba(178,173,129,0.1) 0%, var(--dark-bg) 60%);
    display: flex;
    align-items: center;
}

.floating-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allows clicking on form */
}

.float-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 { width: 500px; height: 500px; background: rgba(178, 173, 129, 0.2); top: -10%; left: -10%; }
.shape-2 { width: 400px; height: 400px; background: rgba(91, 90, 80, 0.3); bottom: 10%; right: -5%; }
.shape-3 { width: 300px; height: 300px; background: rgba(178, 173, 129, 0.15); top: 40%; left: 40%; }

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* --- Left Side: Information --- */
.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.contact-info h1 { font-size: 4rem; font-weight: 300; line-height: 1.1; margin-bottom: 20px; }
.contact-info h1 span { color: #B2AD81; font-weight: bold; }
.contact-info > p { font-size: 1.1rem; color: #ccc; margin-bottom: 40px; line-height: 1.6; }

.info-blocks { margin-bottom: 40px; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}
.info-icon {
    font-size: 1.8rem;
    background: rgba(178, 173, 129, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(178, 173, 129, 0.3);
}
.info-item h4 { color: #fff; font-size: 1.1rem; margin-bottom: 5px; }
.info-item p, .info-item a { color: #a0a0a0; font-size: 1rem; text-decoration: none; transition: color 0.3s; }
.info-item a:hover { color: #B2AD81; }

.contact-socials { display: flex; gap: 15px; }
.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(178,173,129,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-btn img { width: 25px; height: 25px; object-fit: contain; transition: transform 0.4s; }
.social-btn:hover { background: #B2AD81; transform: translateY(-8px); box-shadow: 0 10px 20px rgba(178,173,129,0.3); }
.social-btn:hover img { transform: scale(1.2) rotate(10deg); filter: brightness(0); /* Turns icons black on hover */ }


/* --- Right Side: Glassmorphism Form --- */
.contact-form-wrapper {
    flex: 1;
    min-width: 350px;
}

.form-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(178, 173, 129, 0.4);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.form-header { margin-bottom: 30px; }
.form-header h2 { font-size: 2.5rem; font-weight: 300; }
.form-header h2 span { color: #B2AD81; font-weight: bold; }
.form-header p { color: #888; font-size: 0.95rem; margin-top: 5px; }

/* Animated Floating Labels */
.input-row { display: flex; gap: 20px; }
.input-row .input-group { flex: 1; }

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px 0 10px 0;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    outline: none;
    transition: all 0.3s;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Float label up when input is focused OR has content */
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: #B2AD81;
    font-weight: bold;
    letter-spacing: 1px;
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom: 1px solid #B2AD81;
}

/* Submit Button */
.btn-submit-contact {
    width: 100%;
    background: #B2AD81;
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.btn-submit-contact:hover {
    background: #5B5A50;
    color: #fff;
    box-shadow: 0 10px 25px rgba(178,173,129,0.3);
}

.btn-icon { transition: transform 0.3s ease; }
.btn-submit-contact:hover .btn-icon { transform: translateX(10px); }

.btn-submit-contact.loading {
    background: #5B5A50;
    color: #fff;
    cursor: wait;
}


/* --- Success Overlay Animation --- */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content { transform: translateY(20px); transition: transform 0.5s ease; padding: 30px;}
.success-overlay.active .success-content { transform: translateY(0); }

/* Animated Checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    border: 3px solid #B2AD81;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.check-icon {
    width: 25px;
    height: 45px;
    border: solid #B2AD81;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -10px;
}
.success-overlay.active .check-icon { animation: checkPop 0.5s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes checkPop { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }

.success-content h3 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.success-content p { color: #a0a0a0; margin-bottom: 30px; line-height: 1.5; }

.btn-reset {
    background: transparent;
    border: 1px solid #B2AD81;
    color: #B2AD81;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-reset:hover { background: #B2AD81; color: #000; }

/* --- Responsive Layout --- */
@media (max-width: 900px) {
    .contact-container { flex-direction: column; }
    .contact-info { padding-right: 0; text-align: center;}
    
    .contact-socials { justify-content: center; }
    .form-card { padding: 30px; }
    .input-row { flex-direction: column; gap: 0; }
}

/* Scroll Animation Classes */
.reveal { opacity: 0; transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translate(0, 0) scale(1); }
.fade-right { transform: translateX(-50px); }
.fade-left { transform: translateX(50px); }

/* --- Interactive Location Map Styling --- */
.location-map-wrapper {
    margin-top: 40px;
    margin-bottom: 30px;
    max-width: 90%;
}

.location-map-wrapper h4 {
    color: #B2AD81;
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.map-container {
    width: 100%;
    height: 220px;
    padding: 8px; /* Creates a premium glass border around the map */
    border-radius: 15px;
    overflow: hidden;
}

.map-container iframe {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    /* Makes the map dark/silver to fit your premium theme */
    filter: grayscale(80%) invert(90%) contrast(1.2); 
    transition: filter 0.5s ease;
}

.map-container:hover iframe {
    /* Returns the map to full, normal color when the user hovers over it */
    filter: grayscale(0%) invert(0%) contrast(1); 
}

/* Responsive adjustment for the map */
@media (max-width: 900px) {
    .location-map-wrapper { max-width: 100%; }
}