/* ===== Enhanced Contact Page Styles - With Working Testimonial Slider ===== */

* {
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0b0d18;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.contact-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .3;
    animation: float 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #23c1dd, transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6e5cf1, transparent);
    top: 60%;
    right: 10%;
    animation-delay: 7s;
}

.bg-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #8259f6, transparent);
    bottom: 20%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(.9); }
    75% { transform: translate(30px, 10px) scale(1.05); }
}

/* Layout */
.contact-page main {
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

@media (max-width:991px) {
    .contact-page main {
        padding-top: 70px;
    }
}

.contact-main {
    background: radial-gradient(ellipse at top, rgba(110, 92, 241, .1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(35, 193, 221, .05) 0%, transparent 50%),
                linear-gradient(180deg, #0b0d18, #060812);
    min-height: 100vh;
    position: relative;
}

/* Hero */
.contact-hero {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, #bfc2d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #bfc2d9;
    margin: 0;
    line-height: 1.6;
    opacity: .9;
}

/* Grid */
.contact-wrap {
    padding: 0 0 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

@media (max-width:991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }
}

/* Contact Info Panel */
.contact-info-2 {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-2::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .02), transparent);
    transition: left .8s ease;
}

.contact-info-2:hover::before {
    left: 100%;
}

.contact-info-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .12);
}

.info-header {
    margin-bottom: 8px;
}

.contact-title {
    color: #23c1dd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.contact-headline {
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin: 0 0 8px;
}

.contact-sub {
    color: #bfc2d9;
    margin: 0;
    font-size: .875rem;
    opacity: .9;
    line-height: 1.5;
}

.contact-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 12px 0;
}

/* Quick blocks */
.contact-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width:768px) {
    .contact-quick {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.info-block {
    display: flex;
    gap: 12px;
    padding: 16px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .05);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    align-items: flex-start;
}

.info-block::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(35, 193, 221, .05), transparent);
    transition: left .6s ease;
}

.info-block:hover::before {
    left: 100%;
}

.info-block:hover {
    background: rgba(255, 255, 255, .04);
    transform: translateY(-3px);
    border-color: #23c1dd;
    box-shadow: 0 10px 30px rgba(35, 193, 221, .1), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.info-center {
    grid-column: 1 / -1;
    max-width: 100%;
}

.ib-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(35, 193, 221, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.icon-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all .6s ease;
}

.info-block:hover .ib-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(35, 193, 221, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.info-block:hover .icon-ripple {
    width: 100px;
    height: 100px;
}

.ib-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ib-text h4 {
    color: #fff;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 1rem;
}

.ib-text p {
    margin: 0;
    line-height: 1.5;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin: 4px 0;
}

.contact-list a,
.contact-link {
    color: #f1f5f9;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    display: inline-block;
    font-weight: 500;
    font-size: .95rem;
    word-break: break-word;
}

.contact-list a:hover,
.contact-link:hover {
    color: #23c1dd;
    transform: translateX(4px);
}

.office-address {
    color: #bfc2d9;
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    font-size: .9rem;
}

/* Social */
.social-section {
    margin-top: auto;
    text-align: center;
    padding-top: 16px;
}

.social-section h4 {
    color: #fff;
    font-weight: 600;
    margin: 0 0 12px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #bfc2d9;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    opacity: 0;
    transition: opacity .3s;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: #fff;
    border-color: #23c1dd;
    box-shadow: 0 8px 20px rgba(35, 193, 221, .3);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Contact Form Card */
.contact-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity .3s;
}

.contact-card:hover::before {
    opacity: .1;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
}

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

.form-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 6px;
}

.form-subtitle {
    color: #bfc2d9;
    margin: 0;
    opacity: .9;
    font-size: .875rem;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.contact-form::-webkit-scrollbar {
    width: 6px;
}

.contact-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .02);
    border-radius: 3px;
}

.contact-form::-webkit-scrollbar-thumb {
    background: rgba(35, 193, 221, .3);
    border-radius: 3px;
}

.contact-form::-webkit-scrollbar-thumb:hover {
    background: rgba(35, 193, 221, .5);
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #fff;
    font-weight: 500;
    font-size: .875rem;
    margin-bottom: 6px;
    display: block;
}

.half-width {
    grid-column: span 2;
}

.full-width {
    grid-column: span 4;
}

.quarter-width {
    grid-column: span 1;
}

.three-quarter-width {
    grid-column: span 3;
}

@media (max-width:768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .half-width,
    .full-width,
    .quarter-width,
    .three-quarter-width {
        grid-column: span 1;
    }
}

/* Inputs */
.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    border: 2px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .875rem;
    font-family: inherit;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: #bfc2d9;
    opacity: .6;
}

.form-input:focus {
    outline: none;
    border-color: #23c1dd;
    background: rgba(35, 193, 221, .05);
    box-shadow: 0 0 0 3px rgba(35, 193, 221, .1);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    transition: all .3s;
    transform: translateX(-50%);
    border-radius: 1px;
}

.input-wrapper.focused .input-focus-border {
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 70px;
    max-height: 120px;
    line-height: 1.5;
    padding: 10px 12px;
}

.select-wrapper {
    position: relative;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #bfc2d9;
    pointer-events: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    font-size: 12px;
}

.select-wrapper:hover .select-arrow {
    color: #23c1dd;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 16px rgba(35, 193, 221, .3), inset 0 1px 0 rgba(255, 255, 255, .1);
    margin-top: 8px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .6s;
}

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(35, 193, 221, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform .3s;
}

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

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all .6s;
    pointer-events: none;
}

.btn-ripple.active {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 14px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    font-size: .875rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(5, 150, 105, .05));
    color: #10b981;
    border-color: rgba(16, 185, 129, .2);
    box-shadow: 0 8px 20px rgba(16, 185, 129, .1);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, .1), rgba(220, 38, 38, .05));
    color: #ef4444;
    border-color: rgba(239, 68, 68, .2);
    box-shadow: 0 8px 20px rgba(239, 68, 68, .1);
}

.error-msg {
    color: #ef4444;
    font-size: .75rem;
    margin-top: 4px;
    display: block;
}

.has-error .form-input {
    border-color: #ef4444;
}

/* ===== TESTIMONIALS SECTION - RENAMED CLASSES ===== */
.reviews-showcase-area {
    padding: 60px 0 80px;
    background: radial-gradient(ellipse at center, rgba(110, 92, 241, .05) 0%, transparent 50%),
                linear-gradient(180deg, transparent, rgba(0, 0, 0, .2));
    position: relative;
    overflow: hidden;
}

.reviews-heading-block {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-inline: auto;
}

.reviews-kicker-label {
    color: #23c1dd;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.reviews-main-heading {
    color: #fff;
    font-weight: 800;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.reviews-intro-text {
    color: #bfc2d9;
    font-size: 1.0625rem;
    margin: 0;
    opacity: .9;
    line-height: 1.6;
}

/* Reviews Carousel Container */
.reviews-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Reviews Slider Track */
.reviews-slider-track {
    display: flex;
    gap: 28px;
    animation: reviewsAutoScroll 45s linear infinite;
    will-change: transform;
}

.reviews-slider-track:hover {
    animation-play-state: paused;
}

/* Reviews Groups */
.reviews-group-original,
.reviews-group-duplicate {
    display: flex;
    gap: 28px;
    flex-shrink: 0;
}

/* Review Item Box */
.review-item-box {
    width: 380px;
    min-width: 380px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.review-item-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #23c1dd, #6e5cf1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity .3s;
}

.review-item-box:hover::before {
    opacity: .1;
}

.review-item-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.review-body-content {
    margin-bottom: 20px;
}

.quote-symbol-icon {
    color: #23c1dd;
    font-size: 1.75rem;
    margin-bottom: 14px;
    opacity: .8;
}

.review-message-text {
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.7;
    font-size: 1rem;
    font-style: italic;
}

.review-star-rating {
    color: #fbbf24;
    font-size: 1rem;
    display: flex;
    gap: 4px;
}

.review-author-info {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 14px;
}

.author-full-name {
    color: #fff;
    font-weight: 600;
    margin: 0 0 4px;
    font-size: 1.0625rem;
}

.author-job-title {
    color: #23c1dd;
    font-size: .875rem;
    margin: 0;
    font-weight: 500;
}

/* Keyframe Animation - Moves by exactly one set's width */
@keyframes reviewsAutoScroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-1 * ((380px * 3) + (28px * 3))));
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

[data-aos="slide-right"] {
    transform: translateX(-50px);
}

[data-aos="slide-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Styles */
@media (max-width:991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
    
    .contact-card {
        order: 1;
    }
    
    .contact-info-2 {
        order: 2;
    }
}

@media (max-width:768px) {
    .contact-hero {
        padding: 40px 0 30px;
    }

    .contact-info-2,
    .contact-card {
        padding: 24px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .form-textarea {
        min-height: 80px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .review-item-box {
        width: 320px;
        min-width: 320px;
        padding: 24px;
    }
    
    @keyframes reviewsAutoScroll {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(calc(-1 * ((320px * 3) + (28px * 3))));
        }
    }
}

@media (max-width:480px) {
    .contact-page .container {
        padding: 0 16px;
    }

    .contact-hero {
        padding: 30px 0 20px;
    }

    .contact-info-2,
    .contact-card {
        padding: 20px;
        border-radius: 12px;
    }

    .form-grid {
        gap: 12px;
    }

    .info-block {
        padding: 14px 10px;
        gap: 10px;
    }

    .ib-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 16px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .review-item-box {
        width: 290px;
        min-width: 290px;
        padding: 20px;
    }
    
    @keyframes reviewsAutoScroll {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(calc(-1 * ((290px * 3) + (28px * 3))));
        }
    }
}

/* Touch Optimizations */
@media (hover:none) and (pointer:coarse) {
    .form-input,
    .btn-submit,
    .social-link {
        min-height: 44px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reviews-slider-track {
        animation: none !important;
    }

    .bg-orb {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .bg-decoration,
    .reviews-showcase-area,
    .social-section {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Focus States for Accessibility */
.form-input:focus,
.btn-submit:focus,
.social-link:focus,
.contact-link:focus {
    outline: 2px solid #23c1dd;
    outline-offset: 2px;
}