/* Modern Professional Contact Page Styles */

/* Page Container */
.container.my-5 {
    padding: 1.5rem 20px;
}

/* Header Section */
.row .col-12.text-center.mb-5 h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    position: relative;
    display: inline-block;
}

.row .col-12.text-center.mb-5 h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #1e3c72, #64b5f6);
    border-radius: 2px;
}

.row .col-12.text-center.mb-5 .lead {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

/* .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #64b5f6);
} */

.card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.15);
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.card-header h4,
.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Body */
.card-body {
    padding: 1rem 1rem;
    background: #ffffff;
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 0.2rem rgba(100, 181, 246, 0.15);
    background: #ffffff;
    transform: translateY(-2px);
}

.form-control:hover,
.form-select:hover {
    border-color: #2a5298;
    background: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a5298, #64b5f6);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 60, 114, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Contact Information Section */
.col-md-4 .card-body .mb-3 {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin: 0px !important;
}

.col-md-4 .card-body .mb-3:last-child {
    border-bottom: none;
}

.col-md-4 .card-body .mb-3:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    padding-left: 0.5rem;
    border-radius: 8px;
}

.col-md-4 .card-body h6 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.col-md-4 .card-body h6 i {
    margin-right: 6px;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.col-md-4 .card-body .text-muted {
    color: #6c757d !important;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

/* Quick Links Section */
.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0.75rem 0.35rem 1.75rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border: 1px solid transparent;
    position: relative;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    color: #64b5f6;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #1e3c72;
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.05);
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.2);
    transform: scale(1.02);
}

.footer-links li a:hover::before {
    left: 0.65rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container.my-5 {
        padding: 1rem 10px;
    }
    
    .row .col-12.text-center.mb-5 h1 {
        font-size: 1.3rem;
    }
    
    .row .col-12.text-center.mb-5 .lead {
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 0.85rem 0.85rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.5rem 1rem;
    }
    
    .col-md-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .row .col-12.text-center.mb-5 h1 {
        font-size: 1.2rem;
    }
    
    .card-header h4,
    .card-header h5 {
        font-size: 0.85rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.45rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .btn-primary {
        font-size: 0.75rem;
        padding: 0.45rem 0.85rem;
    }
}

/* Form Row Spacing */
.row.mb-3,
.mb-3 {
    margin-bottom: 0.75rem !important;
}

/* Focus Visible for Accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: 2px solid #64b5f6;
    outline-offset: 2px;
}

/* Smooth Animations */
* {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card Spacing */
.col-md-4 .card.mb-4 {
    margin-bottom: 1rem !important;
}

/* Icon Colors */
.text-primary {
    color: #1e3c72 ;
}

.fas,
.fa {
    transition: all 0.3s ease;
}

.col-md-4 .card-body .mb-3:hover .fas,
.col-md-4 .card-body .mb-3:hover .fa {
    transform: scale(1.1);
    color: #64b5f6;
}
