/* Modern Contact Section Styles */

/* Section Title */
.modern-section-title {
    margin-bottom: 60px;
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.decoration-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #0d6efd 0%, #6c5ce7 100%);
    margin: 0 15px;
}

.decoration-icon {
    color: #0d6efd;
    font-size: 1.2rem;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 50%;
    border: 2px solid #0d6efd;
}

.modern-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Info Cards */
.contact-info-cards {
    margin: 60px 0;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f3f4;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-info-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(45deg, #0d6efd, #6c5ce7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover .card-icon {
    transform: scale(1.1);
}

.contact-info-card .card-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.contact-info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.contact-info-card a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #6c5ce7;
}

/* Modern Contact Form */
.modern-contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    border: 1px solid #f1f3f4;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Modern Form Groups */
.modern-form-group {
    position: relative;
    margin-bottom: 30px;
}

.modern-input,
.modern-textarea {
    width: 100%;
    padding: 20px 20px 20px 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    color: #2c3e50;
}

.modern-input:focus,
.modern-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.modern-input:focus + .modern-label,
.modern-textarea:focus + .modern-label,
.modern-input:valid + .modern-label,
.modern-textarea:valid + .modern-label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    color: #0d6efd;
    background: #ffffff;
    padding: 0 8px;
}

.modern-label {
    position: absolute;
    top: 20px;
    left: 50px;
    color: #7f8c8d;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.input-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.modern-input:focus ~ .input-icon,
.modern-textarea:focus ~ .input-icon {
    color: #0d6efd;
}

.modern-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.modern-submit-btn {
    background: linear-gradient(45deg, #0d6efd, #6c5ce7);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.modern-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.4);
    background: linear-gradient(45deg, #6c5ce7, #0d6efd);
}

.modern-submit-btn:active {
    transform: translateY(-1px);
}

.modern-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.modern-submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-title {
        font-size: 2rem;
    }

    .modern-contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-info-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .decoration-line {
        width: 30px;
        margin: 0 10px;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .modern-title {
        font-size: 1.8rem;
    }

    .modern-contact-form-wrapper {
        padding: 25px 15px;
    }

    .modern-input,
    .modern-textarea {
        padding: 15px 15px 15px 45px;
    }

    .modern-label {
        left: 45px;
        top: 15px;
    }

    .input-icon {
        left: 15px;
        top: 15px;
    }

    .modern-submit-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Floating label active state */
.modern-label.active {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    color: #667eea;
    background: #ffffff;
    padding: 0 8px;
}

/* Animation for form validation */
.modern-form-group.error .modern-input,
.modern-form-group.error .modern-textarea {
    border-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Loading state */
.modern-submit-btn.loading {
    position: relative;
    color: transparent;
}

.modern-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
