/* ======================================= */
/* CONTACT SECTION - PHONE & EMAIL SIDE BY SIDE */
/* ======================================= */

.contact-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 80px 40px 60px 40px;
    color: var(--text-color);
    animation: fadeSlideUp 0.9s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    background-color: var(--bg-color) !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* ======================================= */
/* ANIMATED GEOMETRIC SHAPES BACKGROUND */
/* ======================================= */

.contact-section .geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.contact-section .shape {
    position: absolute;
    opacity: 0;
    animation: floatShape 8s ease-in-out infinite;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Shape 1 - Large Circle */
.contact-section .shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

/* Shape 2 - Rotated Square */
.contact-section .shape-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #FFB14E, transparent);
    transform: rotate(45deg);
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

/* Shape 3 - Triangle */
.contact-section .shape-3 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(128, 0, 128, 0.12);
    top: 70%;
    left: 15%;
    animation-delay: 2.5s;
}

/* Shape 4 - Rounded Rectangle */
.contact-section .shape-4 {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, transparent, #FFB14E);
    border-radius: 25px;
    bottom: 15%;
    right: 12%;
    transform: rotate(20deg);
    animation-delay: 3.5s;
}

/* Shape 5 - Medium Circle */
.contact-section .shape-5 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    top: 50%;
    left: 25%;
    animation-delay: 4.5s;
}

/* Shape 6 - Conic Gradient Circle */
.contact-section .shape-6 {
    width: 110px;
    height: 110px;
    background: conic-gradient(from 0deg, #FFB14E, transparent, var(--primary-color));
    border-radius: 50%;
    top: 80%;
    right: 30%;
    animation-delay: 2s;
}

/* Shape 7 - Gradient Line */
.contact-section .shape-7 {
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    top: 35%;
    right: 8%;
    transform: rotate(-20deg);
    animation-delay: 3s;
}

/* Show shapes when contact section is in view */
.contact-section.animate-in .shape {
    opacity: 0.12;
    transform: scale(1);
}

.contact-section.animate-out .shape {
    opacity: 0;
    transform: scale(0.8);
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-15px) rotate(5deg) scale(1.05); 
    }
    50% { 
        transform: translateY(-25px) rotate(-8deg) scale(0.95); 
    }
    75% { 
        transform: translateY(-10px) rotate(10deg) scale(1.02); 
    }
}

/* Main container for two-column layout */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Add this class in your JS when the section comes into view */
.contact-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================= */
/* LEFT COLUMN - CONTACT INFO + MAP */
/* ======================================= */

.contact-info-left {
    padding-right: 40px;
}

.contact-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* Gradient text effect */
    background: linear-gradient(135deg, var(--primary-color), #FFB14E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 400px;
}

.contact-details {
    margin-bottom: 40px;
}

/* NEW: Contact row for side by side phone and email */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(var(--bg-color-rgb, 18, 18, 18), 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb, 128, 0, 128), 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #FFB14E);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(128, 0, 128, 0.4);
}

.contact-item-content {
    width: 100%;
}

/* UNIFORM STYLING FOR PHONE AND EMAIL */
.contact-item-content .value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

/* ======================================= */
/* GOOGLE MAPS CONTAINER - REPLACES ADDRESS */
/* ======================================= */

.map-container {
    width: 100%;
    height: 350px; /* Increased height since it's the main location display */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(var(--primary-color-rgb, 128, 0, 128), 0.2);
    position: relative;
    background: rgba(var(--bg-color-rgb, 18, 18, 18), 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Map loading state */
.map-container::before {
    content: '📍 Loading Map...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container.loading::before {
    opacity: 1;
}

/* ======================================= */
/* RIGHT COLUMN - CONTACT FORM */
/* ======================================= */

.contact-form-right {
    background: rgba(var(--bg-color-rgb, 18, 18, 18), 0.6);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(var(--primary-color-rgb, 128, 0, 128), 0.3);
    position: relative;
    overflow: hidden;
}

/* Gradient border effect */
.contact-form-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #FFB14E);
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* Form row for first/last name */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    padding: 18px 20px;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-color-rgb, 128, 0, 128), 0.2);
    background: rgba(var(--bg-color-rgb, 255, 255, 255), 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb, 128, 0, 128), 0.1);
    transform: translateY(-2px);
    background: rgba(var(--bg-color-rgb, 255, 255, 255), 0.9);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* SUBMIT BUTTON */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #FFB14E) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.4);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    width: 100%;
    min-height: 60px;
}

/* Button hover effects */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover,
.submit-btn:focus {
    outline: none;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 45px rgba(128, 0, 128, 0.5) !important;
    background: linear-gradient(135deg, #9f1c9f, #e6a045) !important;
}

.submit-btn::after {
    content: '✈';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.submit-btn:hover::after {
    transform: translateX(5px);
}

/* ======================================= */
/* ANIMATIONS - INCLUDING SIDE BY SIDE ITEMS */
/* ======================================= */

#contact-section .contact-title,
#contact-section .contact-subtitle,
#contact-section .contact-row,
#contact-section .map-container,
#contact-section .contact-form,
#contact-section .submit-btn {
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: forwards;
}

#contact-section .contact-title {
    animation: slideFadeIn 0.8s ease 0.2s forwards;
}

#contact-section .contact-subtitle {
    animation: slideFadeIn 0.7s ease 0.4s forwards;
}

#contact-section .contact-row {
    animation: slideInLeft 0.8s ease 0.6s forwards;
}

#contact-section .map-container {
    animation: mapFadeIn 0.9s ease 0.8s forwards;
}

#contact-section .contact-form {
    animation: slideInRight 0.9s ease 0.5s forwards;
}

#contact-section .submit-btn {
    animation: buttonFadeIn 0.8s ease 1s forwards;
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-40px);
    }
    to   { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(40px);
    }
    to   { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes mapFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    to   { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95);
    }
    to   { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes slideFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to   { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================= */
/* THEME ADJUSTMENTS */
/* ======================================= */

/* Dark theme */
body[data-theme="dark"] .contact-title {
    background: linear-gradient(135deg, #FFD700, #FFB14E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-theme="dark"] .contact-icon {
    background: linear-gradient(135deg, #FFD700, #FFB14E);
}

body[data-theme="dark"] .contact-item {
    background: rgba(45, 55, 72, 0.3);
    border-color: rgba(255, 215, 0, 0.2);
}

body[data-theme="dark"] .contact-item:hover {
    border-color: #FFD700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
}

body[data-theme="dark"] .contact-form-right {
    background: rgba(45, 55, 72, 0.6);
    border-color: rgba(255, 215, 0, 0.3);
}

body[data-theme="dark"] .contact-form-right::before {
    background: linear-gradient(90deg, #FFD700, #FFB14E);
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group textarea {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
}

body[data-theme="dark"] .form-group input:focus,
body[data-theme="dark"] .form-group textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

body[data-theme="dark"] .submit-btn {
    background: linear-gradient(135deg, #FFD700, #FFB14E) !important;
}

body[data-theme="dark"] .submit-btn:hover {
    background: linear-gradient(135deg, #e6c200, #d4a044) !important;
}

body[data-theme="dark"] .map-container {
    border-color: rgba(255, 215, 0, 0.3);
}

body[data-theme="dark"] .map-container:hover {
    border-color: #FFD700;
}

/* Light theme */
body:not([data-theme="dark"]) .contact-item {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(128, 0, 128, 0.2);
}

body:not([data-theme="dark"]) .contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.2);
}

body:not([data-theme="dark"]) .contact-form-right {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(128, 0, 128, 0.3);
}

body:not([data-theme="dark"]) .form-group input,
body:not([data-theme="dark"]) .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(128, 0, 128, 0.3);
}

body:not([data-theme="dark"]) .map-container {
    border-color: rgba(128, 0, 128, 0.3);
}

/* ======================================= */
/* RESPONSIVE DESIGN */
/* ======================================= */

@media (max-width: 1024px) {
    .contact-content {
        gap: 60px;
    }
    
    .contact-info-left {
        padding-right: 20px;
    }
    
    .contact-form-right {
        padding: 40px 30px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px 40px 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info-left {
        padding-right: 0;
        text-align: center;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-right {
        padding: 30px 25px;
    }
    
    .map-container {
        height: 250px;
    }
    
    /* Stack phone and email vertically on mobile */
    .contact-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 60px 15px 40px 15px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form-right {
        padding: 25px 20px;
    }
    
    .map-container {
        height: 200px;
    }
    
    .contact-item {
        padding: 20px 10px;
    }
    
    .contact-item-content .value {
        font-size: 0.9rem;
    }
}

/* Force visibility for submit button */
.contact-form .submit-btn,
.contact-form-right .submit-btn,
#contact-section .submit-btn {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999 !important;
}
/* ======================================= */
/* CONTACT FORM STATUS STYLES */
/* ======================================= */

.form-status {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-status:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.3s ease;
}

.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: translateY(0);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark/Light mode support */
[data-theme="dark"] .success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    color: #22c55e;
}

[data-theme="dark"] .error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    color: #ef4444;
}
