/* Contact Carousel Styles */
.contact-carousel,
.form-carousel {
    max-height: 500px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-carousel .info-header,
.form-carousel .form-header {
    margin-bottom: 1rem;
}

.contact-carousel .quick-actions {
    margin-top: 1rem;
}

.contact-carousel-container,
.form-carousel-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
}

.contact-carousel-track,
.form-carousel-track {
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.contact-carousel-slide,
.form-carousel-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 3rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.contact-carousel-slide.active,
.form-carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.contact-carousel-slide .contact-item,
.form-carousel-slide .modern-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 2rem;
}

/* Carousel Navigation */
.contact-carousel-nav,
.form-carousel-nav {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

/* Form carousel specific styling */
.form-carousel-nav .carousel-nav-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.form-carousel-nav .carousel-nav-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.form-carousel-help {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 5;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.step-indicator {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
    margin-left: 0.5rem;
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
}

.carousel-nav-btn {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.carousel-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-nav-btn i {
    font-size: 1rem;
}

/* Carousel Indicators */
.contact-carousel-indicators,
.form-carousel-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-carousel-indicators .indicator,
.form-carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-carousel-indicators .indicator.active,
.form-carousel-indicators .indicator.active {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.contact-carousel-indicators .indicator:hover,
.form-carousel-indicators .indicator:hover {
    background: rgba(6, 182, 212, 0.6);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-carousel-container,
    .form-carousel-container {
        height: 300px;
    }
    
    .contact-carousel-nav,
    .form-carousel-nav {
        right: 0.5rem;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .contact-carousel-slide,
    .form-carousel-slide {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-carousel-container,
    .form-carousel-container {
        height: 280px;
    }
    
    .contact-carousel-slide,
    .form-carousel-slide {
        padding: 1rem;
    }
    
    .carousel-nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-nav-btn i {
        font-size: 0.8rem;
    }
}

/* Dark Mode Support */
body.dark-mode .contact-carousel-container,
body.dark-mode .form-carousel-container {
    background: rgba(30, 41, 59, 0.3);
}

body.dark-mode .carousel-nav-btn {
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.4);
}

body.dark-mode .carousel-nav-btn:hover {
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.6);
}

body.dark-mode .contact-carousel-indicators .indicator,
body.dark-mode .form-carousel-indicators .indicator {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .contact-carousel-indicators .indicator.active,
body.dark-mode .form-carousel-indicators .indicator.active {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

/* Animation for slide transitions */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.contact-carousel-slide.slide-in,
.form-carousel-slide.slide-in {
    animation: slideInUp 0.5s ease-in-out;
}

.contact-carousel-slide.slide-out,
.form-carousel-slide.slide-out {
    animation: slideOutDown 0.5s ease-in-out;
}

/* Form validation styling */
.form-carousel .input-wrapper.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-carousel .input-wrapper.error input,
.form-carousel .input-wrapper.error select,
.form-carousel .input-wrapper.error textarea {
    border-color: #ef4444;
}

.form-carousel .input-wrapper.error::after {
    content: '⚠️';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 1rem;
}

.form-carousel .input-wrapper.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-carousel .input-wrapper.success input,
.form-carousel .input-wrapper.success select,
.form-carousel .input-wrapper.success textarea {
    border-color: #10b981;
}
