/* ========================================
   CONTACT US SECTION - Before Footer
   Modern, Interactive with EmailJS
   ======================================== */

.contact-us-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.contact-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.contact-us-section .container {
    position: relative;
    z-index: 1;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

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

.contact-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FFA500 0%, #ff8c00 100%);
    border-radius: 2px;
}

.contact-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Left Side - Contact Info */
.contact-info-side {
    animation: slideInLeft 0.8s ease-out;
}

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

.contact-info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
    border-color: rgba(255, 165, 0, 0.3);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFA500 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.35);
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(255, 165, 0, 0.5);
}

.contact-icon i {
    color: #fff;
    font-size: 22px;
}

.contact-details h4 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.contact-details a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #FFA500;
}

/* Right Side - Contact Form */
.contact-form-side {
    animation: slideInRight 0.8s ease-out;
}

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

.contact-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px 32px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #FFA500 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.contact-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form-group {
    margin-bottom: 16px;
    position: relative;
}

.contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: #333;
}

.contact-form-group input:hover,
.contact-form-group textarea:hover,
.contact-form-group select:hover {
    border-color: #ffb733;
    background: #fafafa;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.15);
    transform: translateY(-2px);
    background: #fff;
}

.contact-form-group input:focus + label,
.contact-form-group textarea:focus + label,
.contact-form-group select:focus + label {
    color: #FFA500;
}

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

.contact-form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFA500 0%, #ff8c00 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-form-submit:hover::before {
    width: 500px;
    height: 500px;
}

.contact-form-submit:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #FFA500 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.6);
}

.contact-form-submit:active {
    transform: translateY(-2px) scale(0.98);
}

.contact-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form-submit i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-form-submit:hover i {
    transform: translateX(5px);
}

/* Success/Error Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.4s ease-out;
    display: none;
}

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

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-header h2 {
        font-size: 36px;
    }
    
    .contact-form-card {
        padding: 40px 35px;
    }
}

@media (max-width: 767px) {
    .contact-us-section {
        padding: 60px 0;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-header h2 {
        font-size: 30px;
    }
    
    .contact-header p {
        font-size: 16px;
    }
    
    .contact-info-card {
        padding: 30px 25px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 22px;
    }
    
    .contact-form-card {
        padding: 35px 25px;
    }
    
    .contact-form-card h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-info-card {
        padding: 25px 20px;
    }
    
    .contact-form-card {
        padding: 30px 20px;
    }
    
    .contact-form-group input,
    .contact-form-group textarea,
    .contact-form-group select {
        padding: 14px 16px;
    }
}
