/* ===============================
   CONTACT US SECTION STYLES
   =============================== */

.contact-section {
    position: relative;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        rgba(248, 250, 252, 0.6) 50%, 
        rgba(243, 244, 246, 0.4) 100%
    );
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(13, 27, 42, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(217, 159, 89, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-question-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    min-width: 8rem;
    font-weight: bold;
    color: #374151;
    font-size: 1.125rem;
    box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.captcha-input {
    width: 6rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.captcha-refresh-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.captcha-refresh-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15);
}

.captcha-refresh-btn:active {
    transform: translateY(0);
}

.captcha-equals {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
}

.captcha-help-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

@media (max-width: 640px) {
    .captcha-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .captcha-question-box {
        min-width: 6rem;
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .captcha-input {
        width: 5rem;
        font-size: 1rem;
    }
}

/* Section Header */
.contact-section .welcome-flag {
    color: #3b82f6;
    font-weight: 600;
}

.contact-section .gradient-text {
    background: linear-gradient(135deg, 
        #1f2937 0%,   /* Dark gray */
        #374151 25%,  /* Medium gray */
        #111827 50%,  /* Very dark gray */
        #000000 75%,  /* Black */
        #1f2937 100%  /* Dark gray */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Contact Information Styles */
.contact-info-wrapper {
    position: relative;
    z-index: 2;
}

.contact-header h3 {
    color: #1f2937;
}

.office-card {
    /* background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 5%, #fff7ed 100%); */
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* border: 1px solid #fbbf24; */
}

.office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.office-card:hover::before {
    opacity: 1;
}

.office-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.office-card h4 {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.office-card .space-y-2 {
    position: relative;
    z-index: 2;
}

.general-contact {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.general-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.general-contact h4 {
    color: #D19F59;
}

.general-contact .space-y-2 p {
    color: #D19F59;
}

/* Contact Form Styles */
.contact-form-container {
    position: relative;
    z-index: 2;
}

.contact-form-container > div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.contact-form-container > div:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
    border-color: #fbbf24;
}

.form-group label {
    color: #374151;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 6px;
    border: 2px solid #d1d5db;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #1f2937 !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af !important;
}

.form-group select {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.form-group select option {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.form-group select option:first-child {
    color: #6b7280 !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #fbbf24;
    background-color: #ffffff !important;
}

.form-actions button {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(131, 130, 130, 0.4);
    transition: all 0.3s ease;
    border: none;
    color: #3c3c3c;
}

.form-actions button:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px) scale(1.02);
}

/* Office Map Styles */
.office-map-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.office-map-container .flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
}

.office-map-container .flex-1 {
    flex: 1;
    max-width: 500px;
}

.office-map-container > div {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.map-frame {
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-frame iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.location-info-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.location-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.athens-marker circle:first-child,
.dubai-marker circle:first-child {
    cursor: pointer;
    transition: all 0.3s ease;
}

.athens-marker:hover circle:first-child {
    r: 12;
    fill: #1e40af;
}

.dubai-marker:hover circle:first-child {
    r: 12;
    fill: #d97706;
}

/* SVG Map Animations */
@keyframes mapPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

.map-wrapper svg {
    animation: none;
    transition: transform 0.3s ease;
}

.map-wrapper:hover svg {
    transform: scale(1.02);
}

/* Animation classes for scroll reveal */
.contact-info-wrapper {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInFromLeft 1s ease-out forwards;
    animation-delay: 0.3s;
}

.contact-form-container {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.5s;
}

.office-map-container {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.7s;
}

.office-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.office-card:nth-child(2) { animation-delay: 0.1s; }
.office-card:nth-child(3) { animation-delay: 0.2s; }
.office-card:nth-child(4) { animation-delay: 0.3s; }

.location-info-card {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleUp 0.8s ease-out forwards;
}

.location-info-card:nth-child(1) { animation-delay: 0.9s; }
.location-info-card:nth-child(2) { animation-delay: 1.1s; }

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-section .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-wrapper {
        order: 2;
    }
    
    .lg\:col-span-2 {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-container > div,
    .office-map-container > div {
        padding: 1.5rem;
    }
    
    .office-card {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    .map-wrapper {
        height: 16rem;
    }
    
    .location-pin > div:first-child {
        width: 3rem;
        height: 3rem;
        padding: 0.75rem;
    }
    
    .location-pin > div:first-child i {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .contact-form .grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .map-wrapper .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .office-card .flex {
        flex-direction: column;
        text-align: left;
    }
    
    .office-card .flex .w-5 {
        width: auto;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}

/* Focus and Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.form-actions button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-section {
        background: white;
        box-shadow: none;
    }
    
    .office-card,
    .general-contact,
    .contact-form-container > div,
    .office-map-container > div {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* ===============================
   RESPONSIVE CONTACT ALIGNMENT
   =============================== */

@media (max-width: 768px) {
    .office-card {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .office-card h4 {
        text-align: center !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    .office-card .space-y-2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .office-card .space-y-2 p {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    .general-contact {
        text-align: center !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Responsive Maps */
    .office-map-container .flex {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .map-frame iframe {
        height: 250px !important;
    }
    
    .general-contact h4 {
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .general-contact .space-y-4 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
}
