/* Modern Contact Section Styles */

.contact-section-modern {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Add wave pattern background */
.contact-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0,0,0,0.02) 35px, rgba(0,0,0,0.02) 70px);
    pointer-events: none;
    z-index: 0;
}

/* Add gradient overlay for depth */
.contact-section-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.contact-section-modern .container {
    position: relative;
    z-index: 1;
}

/* Contact Info Cards */
.contact-card-modern {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid transparent;
}

.contact-card-modern:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #242424;
}

.contact-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #242424 0%, #000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.contact-card-modern:hover .contact-icon-modern {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #000 0%, #242424 100%);
}

.contact-icon-modern span {
    font-size: 24px;
    color: white;
}

.contact-content-modern h3 {
    font-size: 18px;
    font-weight: 700;
    color: #242424;
    margin-bottom: 8px;
}

.contact-content-modern p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.contact-content-modern a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content-modern a:hover {
    color: #242424;
    text-decoration: underline;
}

/* Modern Contact Form */
.contact-form-modern {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #242424 0%, #000 100%);
}

.form-title-modern {
    font-size: 28px;
    font-weight: 700;
    color: #242424;
    margin-bottom: 10px;
}

.form-subtitle-modern {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Form Groups */
.contact-form-modern .form-group {
    margin-bottom: 25px;
}

.contact-form-modern label {
    display: block;
    font-weight: 600;
    color: #242424;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form-modern input,
.contact-form-modern textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    outline: none;
    border-color: #242424;
    background: white;
    box-shadow: 0 0 0 3px rgba(36, 36, 36, 0.1);
}

.contact-form-modern textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn-modern {
    background: #000 !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #242424 !important;
}

.submit-btn-modern:active {
    transform: translateY(-1px);
}

/* reCAPTCHA spacing */
.contact-form-modern .g-recaptcha {
    margin-bottom: 20px;
}

/* Error messages */
.help-block.with-errors {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    font-weight: 500;
    animation: slideInError 0.3s ease-out;
    position: relative;
}

.help-block.with-errors::before {
    content: '\f071';
    font-family: 'FontAwesome';
    margin-right: 8px;
    font-weight: normal;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input fields with errors */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    animation: shakeError 0.4s ease-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success/Error Messages */
.messages {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Section Title */
.contact-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.contact-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #242424;
    margin-bottom: 15px;
}

.contact-section-title p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-card-modern {
    animation: slideInLeft 0.6s ease-out;
}

.contact-card-modern:nth-child(1) { animation-delay: 0.1s; }
.contact-card-modern:nth-child(2) { animation-delay: 0.2s; }
.contact-card-modern:nth-child(3) { animation-delay: 0.3s; }
.contact-card-modern:nth-child(4) { animation-delay: 0.4s; }

.contact-form-modern {
    animation: slideInRight 0.6s ease-out 0.2s;
    animation-fill-mode: both;
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-form-modern {
        padding: 30px;
        margin-top: 30px;
    }

    .form-title-modern {
        font-size: 24px;
    }

    .contact-section-title h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .contact-card-modern {
        padding: 20px;
    }

    .contact-icon-modern {
        width: 50px;
        height: 50px;
    }

    .contact-icon-modern span {
        font-size: 20px;
    }

    .contact-content-modern h3 {
        font-size: 16px;
    }

    .contact-content-modern p {
        font-size: 14px;
    }

    .contact-form-modern {
        padding: 25px;
    }

    .form-title-modern {
        font-size: 22px;
    }

    .contact-section-title h2 {
        font-size: 26px;
    }

    .contact-card-modern {
        animation: none;
        opacity: 1;
    }

    .contact-form-modern {
        animation: none;
        opacity: 1;
    }
}
