/* Contact Page Ultimate Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Contact Hero Section Styles */
.contact-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.contact-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.contact-hero-content {
    animation: contact-hero-fadeInUp 1s ease-out;
}

.contact-hero-title {
    font-family: 'Arial', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: contact-hero-slideInLeft 1.2s ease-out;
}

.contact-hero-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.25rem;
    color: #e0e0e0;
    margin: 0 0 2.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: contact-hero-slideInRight 1.2s ease-out 0.3s both;
}

.contact-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: contact-hero-fadeInUp 1.2s ease-out 0.6s both;
}

.contact-hero-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.contact-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-hero-btn:hover::before {
    left: 100%;
}

.contact-hero-btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.contact-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.contact-hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.contact-hero-btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.contact-hero-decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.contact-hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: contact-hero-float 6s ease-in-out infinite;
}

.contact-hero-circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.contact-hero-circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.contact-hero-circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.contact-hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: contact-hero-bounce 2s infinite;
}

.contact-hero-scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    opacity: 0.7;
}

/* Animations */
@keyframes contact-hero-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contact-hero-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-hero-slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-hero-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes contact-hero-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero-section {
        background-attachment: scroll;
        min-height: 500px;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .contact-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-hero-btn {
        width: 200px;
    }
    
    .contact-hero-circle-1,
    .contact-hero-circle-2,
    .contact-hero-circle-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-hero-container {
        padding: 0 15px;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-hero-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .contact-hero-title {
        font-size: 5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Main Container */
.contact-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: contact-fade-in 1s ease-out;
}

/* Animation Keyframes */
@keyframes contact-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contact-slide-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-slide-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contact-bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes contact-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes contact-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Left Section - Map */
.contact-map-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    animation: contact-slide-left 0.8s ease-out 0.2s both;
}

.contact-map-container {
    height: 400px;
    margin: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.contact-map {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.contact-map:hover {
    filter: grayscale(0%);
}

.contact-location-info {
    padding: 40px;
    padding-top: 20px;
}

.contact-location-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-location-item i {
    font-size: 24px;
    color: #333;
    margin-right: 20px;
    width: 30px;
    text-align: center;
    animation: contact-pulse 2s infinite;
}

.contact-location-item h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-location-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Right Section - Content */
.contact-content-section {
    padding: 100px;
    animation: contact-slide-right 0.8s ease-out 0.4s both;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #333, #666);
    border-radius: 2px;
}

.contact-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    background: white;
    border-color: #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    animation: contact-bounce 0.6s ease;
}

.contact-info-icon i {
    font-size: 20px;
    color: #333;
}

.contact-info-content h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-content p {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.contact-info-content small {
    color: #888;
    font-size: 12px;
}

/* Form Styles */
.contact-form {
    margin-top: 40px;
}

.contact-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.contact-input:focus,
.contact-textarea:focus {
    border-bottom-color: #333;
}

.contact-input:focus + .contact-label,
.contact-textarea:focus + .contact-label,
.contact-input:valid + .contact-label,
.contact-textarea:valid + .contact-label {
    transform: translateY(-25px);
    font-size: 14px;
    color: #333;
}

.contact-label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #333, #666);
    transition: width 0.3s ease;
}

.contact-input:focus ~ .contact-input-line,
.contact-textarea:focus ~ .contact-input-line {
    width: 100%;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 15px;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(45deg, #333, #555);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #444, #666);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-btn-text {
    transition: opacity 0.3s ease;
}

.contact-btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: contact-spin 1s linear infinite;
}

.contact-btn-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover .contact-btn-icon {
    transform: translateX(5px);
}

/* Social Section */
.contact-social-section {
    margin-top: 40px;
    text-align: center;
}

.contact-social-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-social-link {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-social-link:hover {
    background: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-social-link i {
    font-size: 20px;
}

/* Success Message */
.contact-success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: contact-fade-in 0.3s ease-out;
}

.contact-success-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: contact-bounce 0.6s ease-out;
}

.contact-success-content i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.contact-success-content h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-success-content p {
    color: #666;
    margin-bottom: 25px;
}

.contact-success-close {
    padding: 12px 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.contact-success-close:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .contact-map-section {
        order: 2;
    }
    
    .contact-content-section {
        order: 1;
    }
    
    .contact-map-container {
        height: 300px;
        margin: 30px;
    }
    
    .contact-content-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 10px;
    }
    
    .contact-wrapper {
        border-radius: 15px;
    }
    
    .contact-content-section {
        padding: 30px 25px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-info-card {
        padding: 15px;
    }
    
    .contact-map-container {
        margin: 20px;
        height: 250px;
    }
    
    .contact-location-info {
        padding: 20px;
    }
    
    .contact-location-item {
        padding: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .contact-content-section {
        padding: 20px 15px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-social-links {
        gap: 10px;
    }
    
    .contact-social-link {
        width: 45px;
        height: 45px;
    }
}

/* Loading States */
.contact-form.loading .contact-submit-btn .contact-btn-text {
    opacity: 0;
}

.contact-form.loading .contact-submit-btn .contact-btn-loader {
    display: block;
}

.contact-form.loading .contact-submit-btn .contact-btn-icon {
    display: none;
}

/* Focus States for Accessibility */
.contact-input:focus,
.contact-textarea:focus,
.contact-submit-btn:focus,
.contact-social-link:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}