/* Modern Contact Page Styles - Inspired by Best Contact Form Examples */

.contact-section {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 50%, #faf0ff 100%);
    min-height: 100vh;
    position: relative;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Text Section */
.hero-text-wrapper {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    position: relative;
    text-decoration: none;
    color: inherit;
    font-weight: 900;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #ffd200;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Compact Contact Info */
.contact-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.contact-icon-small {
    color: #2563eb;
    font-size: 1.1rem;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    max-width: 400px;
    margin-left: auto;
}

.form-header {
    border-top: 4px solid #2563eb;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 2rem -2rem;
    padding: 1rem 2rem 0 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-form-card {
        margin-top: 2rem;
        max-width: none;
    }
    
    .contact-info-compact {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .contact-info-compact {
        align-items: center;
        text-align: center;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .form-header {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem 1.5rem 0 1.5rem;
    }
}

.contact-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.contact-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background-color: #ffffff;
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.contact-info-section h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info-section {
    margin-top: 2rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    flex-shrink: 0;
}

.contact-option h5 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-option p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

.contact-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.contact-hero-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.2));
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-form-wrapper {
        padding: 40px 30px;
        margin-top: 30px;
    }
    
    .contact-info-wrapper {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-image-wrapper {
        min-height: 300px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px 25px;
        margin-top: 20px;
    }
    
    .contact-info-wrapper {
        padding: 20px 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-options {
        gap: 20px;
    }
    
    .contact-option {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        align-self: center;
    }
    
    .contact-image-wrapper {
        margin-top: 20px;
    }
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.contact-btn:active {
    transform: translateY(0);
}

/* Contact Info Cards */
.contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 20px 15px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    min-height: 160px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 20px 20px 0 0;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.contact-info-card .bs-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-info-card:hover .bs-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.contact-info-card h5 {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-card p {
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-card a {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 2px 6px;
}

.contact-info-card a:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color) !important;
}

/* Responsive Contact Cards */
@media (max-width: 992px) {
    .contact-info-card {
        min-height: 140px;
        padding: 18px 12px;
    }
    
    .contact-info-card .bs-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.875rem;
    }
    
    .contact-info-card h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-info-card {
        min-height: 120px;
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .contact-info-card .bs-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-info-card h5 {
        font-size: 0.95rem;
    }
    
    .contact-info-card p {
        font-size: 0.85rem;
    }
}

/* Contact Header */
.contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 60px 0;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.contact-header .container {
    position: relative;
    z-index: 2;
}

.contact-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Contact Image Styling */
.contact-image {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.contact-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-header {
        padding: 40px 0;
    }
    
    .contact-header h2 {
        font-size: 2.5rem;
    }
    
    .contact-header p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .contact-info-card {
        margin-bottom: 15px;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form .mb-3 {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-form .mb-3:nth-child(1) { animation-delay: 0.1s; }
.contact-form .mb-3:nth-child(2) { animation-delay: 0.2s; }
.contact-form .mb-3:nth-child(3) { animation-delay: 0.3s; }
.contact-form .mb-3:nth-child(4) { animation-delay: 0.4s; }
.contact-form .mb-3:nth-child(5) { animation-delay: 0.5s; }
.contact-form .d-grid { animation-delay: 0.6s; }

/* Success/Error Messages */
.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success-custom {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger-custom {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}