/* ================================
   Contact Page Styles
   ================================ */

/* Page Header */
.page-header-section {
    position: relative;
}

.page-header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: #fff;
}

/* Contact Info Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 2rem;
}

.card-body i {
    color: var(--primary, #667eea);
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

.card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.card-text a {
    color: var(--primary, #667eea);
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-text a:hover {
    color: var(--primary-600, #2d6cdf);
}

/* Contact Form */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 3px solid var(--accent, #14b8a6);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-label .text-danger {
    color: #e74c3c;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.form-control:focus {
    border-color: var(--primary, #667eea);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d6cdf 0%, #5a3a7c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    min-height: 50px;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-danger {
    background-color: #fcedea;
    color: #c1403d;
}

.alert-danger ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
}

.btn-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Map Section */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* Section Spacing */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-header-section h1 {
        font-size: 2rem;
    }

    .page-header-section {
        padding: 40px 0 !important;
    }
}

@media (max-width: 767px) {
    .page-header-section h1 {
        font-size: 1.5rem;
    }

    .page-header-section {
        padding: 30px 0 !important;
    }

    .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn-lg {
        min-height: 45px;
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-body p-4 {
        padding: 1.5rem;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .alert ul {
        padding-left: 1rem;
        font-size: 0.9rem;
    }
}

/* Textarea auto-resize */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Text utilities */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideUp 0.5s ease-out;
}

.row > div {
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

.row > div:nth-child(1) {
    animation-delay: 0s;
}

.row > div:nth-child(2) {
    animation-delay: 0.1s;
}

.row > div:nth-child(3) {
    animation-delay: 0.2s;
}
