/* collaboration.css */

/* Bounce Animation */
@keyframes bounce-slow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Form Input Styles */
.collab-input:focus {
    border-color: #146c94 !important;
    box-shadow: 0 0 0 4px rgba(20, 108, 148, 0.2) !important;
}

.collab-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Select Arrow */
select.collab-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: left 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
}

/* File Upload */
#resumeFile:focus + label {
    border-color: #146c94;
    background-color: #eff6ff;
}

/* FAQ Accordion */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding-top: 1rem;
}

/* Modal Animations */
#successModal.show {
    display: flex !important;
}

#successModal.show #modalContent {
    transform: scale(1);
    opacity: 1;
}

/* Active Nav Indicator */
nav a[href="collaboration"]::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #146c94, #19a7ce);
    border-radius: 3px 3px 0 0;
}

/* Confetti Animation (Optional) */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #146c94;
    animation: confetti-fall 3s linear;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .animate-bounce-slow i {
        font-size: 4rem !important;
    }

    #successModal #modalContent {
        padding: 1.5rem;
    }

    .faq-question span {
        font-size: 1rem;
    }
}

/* Loading State for Submit Button */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 50%;
    margin: -10px -10px 0 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Form Validation Errors */
.collab-input.error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}
