/* ===== Contact Hero Section ===== */
.contact-hero {
    background: linear-gradient(135deg, #2A3B4C 0%, #3E5A6F 50%, #6B5B95 100%);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: -2rem;
    margin-bottom: 2rem;
    padding: 4rem 0;
    border-radius: 20px;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(198, 69, 105, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(107, 91, 149, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 6px);
}

.contact-shape-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatShape1 20s infinite;
}

.contact-shape-2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatShape2 25s infinite reverse;
}

.contact-shape-3 {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation: floatShape3 15s infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, 40px) rotate(180deg); }
}

@keyframes floatShape3 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-badge .badge {
    animation: slideInDown 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ===== Contact Main Section ===== */
.contact-main {
    padding-top: 0;
}

/* ===== Contact Info Cards ===== */
.contact-info-wrapper {
    position: sticky;
    top: 100px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(107, 91, 149, 0.1);
    border-color: transparent;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1), rgba(198, 69, 105, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B5B95;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-card:hover .info-icon {
    background: linear-gradient(135deg, #6B5B95, #C44569);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.info-content h5 {
    color: #2A3B4C;
    margin-bottom: 0.3rem;
}

.info-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Social Links - Fixed ===== */
.social-links {
    margin-top: 2rem;
}

.social-links h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2A3B4C;
}

.social-links .d-flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1), rgba(198, 69, 105, 0.1));
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #6B5B95;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.social-link i {
    font-size: 1.2rem;
    line-height: 1;
}

.social-link:hover {
    background: linear-gradient(135deg, #6B5B95, #C44569);
    color: white;
    transform: translateY(-5px) rotate(360deg);
}

/* ===== Live Chat CTA ===== */
.live-chat-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.live-chat-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 91, 149, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(107, 91, 149, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(107, 91, 149, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 91, 149, 0); }
}

/* Form Floating Labels */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #6B5B95;
    box-shadow: 0 0 0 0.25rem rgba(107, 91, 149, 0.1);
}

.form-floating > label {
    padding: 1rem 1rem;
    color: #6c757d;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    color: #6B5B95;
    font-weight: 600;
}

/* Textarea specific */
.form-floating > textarea.form-control {
    height: auto;
    min-height: 150px;
}

.form-floating > textarea.form-control ~ label {
    top: 0;
}

.form-floating > textarea.form-control:focus ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
    top: -0.5rem;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #6B5B95, #C44569);
    border: none;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(198, 69, 105, 0.3) !important;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* ===== FAQ Cards ===== */
.faq-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(107, 91, 149, 0.1) !important;
    border-color: transparent;
}

.faq-icon {
    transition: all 0.3s ease;
}

.faq-card:hover .faq-icon {
    transform: scale(1.1) rotate(5deg);
}

.faq-icon i {
    background: linear-gradient(135deg, #6B5B95, #C44569);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Alert Styles ===== */
.alert {
    border: none;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 125, 94, 0.1), rgba(46, 125, 94, 0.05));
    border-left-color: #2E7D5E;
}

.alert-error {
    background: linear-gradient(135deg, rgba(198, 69, 105, 0.1), rgba(198, 69, 105, 0.05));
    border-left-color: #C44569;
}

.alert-info {
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1), rgba(107, 91, 149, 0.05));
    border-left-color: #6B5B95;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(230, 184, 0, 0.1), rgba(230, 184, 0, 0.05));
    border-left-color: #E6B800;
}

/* ===== Trust Badge ===== */
.trust-badge {
    animation: fadeInUp 0.6s ease;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #6B5B95, #C44569);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ===== Main Container Overrides ===== */
main.container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .contact-info-wrapper {
        position: static;
        margin-bottom: 3rem;
    }
    
    .contact-hero {
        min-height: 300px;
        padding: 3rem 0;
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .social-links .d-flex {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    main.container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 250px;
        padding: 2rem 0;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .social-link i {
        font-size: 0.9rem;
    }
    
    .social-links .d-flex {
        gap: 0.7rem;
    }
    
    main.container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        min-height: 200px;
        padding: 1.5rem 0;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(3rem + 2px);
    }
    
    .btn-primary {
        padding: 0.8rem !important;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .social-link i {
        font-size: 0.85rem;
    }
    
    .social-links .d-flex {
        gap: 0.6rem;
    }
    
    .social-links h5 {
        font-size: 1rem;
    }
    
    main.container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ===== Animations ===== */
@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Loading Animation ===== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(107, 91, 149, 0.3);
    border-top-color: #6B5B95;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ===== Form Validation Styles ===== */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #C44569;
    background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(198, 69, 105, 0.25);
}

.invalid-feedback {
    color: #C44569;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== Hover Effects ===== */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ===== Print Styles ===== */
@media print {
    .contact-hero,
    .faq-preview,
    .live-chat-cta,
    .social-links {
        display: none !important;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
}

/* ===== HIDE SCROLLBAR ===== */
html, body {
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}