/* Contact Page Styles */

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-custom {
    animation: spin 1s linear infinite;
}

/* Country Selector Dropdown Styles */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#country-dropdown.hidden {
    display: none !important;
}

#country-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out forwards;
}

/* Country option styles */
.country-option {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background-color: rgb(244 244 245);
}

html.dark .country-option:hover {
    background-color: rgb(71 71 77);
}

.country-option.selected {
    background-color: rgb(236 254 255);
}

html.dark .country-option.selected {
    background-color: rgb(22 78 99);
}

.country-option .fi {
    font-size: 1rem;
    width: 1.125rem;
    display: inline-block;
}

.country-option .country-code {
    font-weight: 500;
    color: rgb(161 161 170);
    min-width: 2.75rem;
    font-size: 0.875rem;
}

html.dark .country-option .country-code {
    color: rgb(113 113 122);
}

.country-option .country-name {
    color: rgb(24 24 27);
    flex: 1;
}

html.dark .country-option .country-name {
    color: rgb(228 228 231);
}

/* Custom scrollbar for dropdown */
#country-list::-webkit-scrollbar {
    width: 8px;
}

#country-list::-webkit-scrollbar-track {
    background: transparent;
}

#country-list::-webkit-scrollbar-thumb {
    background-color: rgb(228 228 231);
    border-radius: 4px;
    border: 2px solid white;
}

html.dark #country-list::-webkit-scrollbar-thumb {
    background-color: rgb(64 64 64);
    border: 2px solid rgb(24 24 27);
}

#country-list::-webkit-scrollbar-thumb:hover {
    background-color: rgb(180 180 185);
}

html.dark #country-list::-webkit-scrollbar-thumb:hover {
    background-color: rgb(87 87 87);
}

/* No results message */
.no-results {
    padding: 2rem;
    text-align: center;
    color: rgb(161 161 170);
}

html.dark .no-results {
    color: rgb(113 113 122);
}

/* Country dropdown overflow fix */
#country-dropdown {
    overflow: hidden;
}

/* Subject Selector Dropdown Styles */
#subject-dropdown.hidden {
    display: none !important;
}

#subject-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out forwards;
}

#subject-dropdown {
    overflow: hidden;
}

/* Subject option styles */
.subject-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.subject-option:last-child {
    border-bottom: none;
}

.subject-option:hover {
    background-color: rgb(244 244 245);
}

html.dark .subject-option:hover {
    background-color: rgb(71 71 77);
}

.subject-option.selected {
    background-color: rgb(236 254 255);
}

html.dark .subject-option.selected {
    background-color: rgb(22 78 99);
}

.subject-option .subject-icon {
    color: rgb(6, 182, 212);
    width: 1.125rem;
    height: 1.125rem;
}

.subject-option .subject-name {
    color: rgb(24 24 27);
    flex: 1;
}

html.dark .subject-option .subject-name {
    color: rgb(228 228 231);
}

/* Generic Dropdown Option Styles */
#subject-list .dropdown-option,
#country-list .dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid transparent;
    color: rgb(24 24 27);
}

#subject-list .dropdown-option:last-child,
#country-list .dropdown-option:last-child {
    border-bottom: none;
}

#subject-list .dropdown-option:hover,
#country-list .dropdown-option:hover {
    background-color: rgb(244 244 245);
}

html.dark #subject-list .dropdown-option,
html.dark #country-list .dropdown-option {
    color: rgb(228 228 231);
}

html.dark #subject-list .dropdown-option:hover,
html.dark #country-list .dropdown-option:hover {
    background-color: rgb(71 71 77);
}

#subject-list .dropdown-option.selected,
#country-list .dropdown-option.selected {
    background-color: rgb(236 254 255);
}

html.dark #subject-list .dropdown-option.selected,
html.dark #country-list .dropdown-option.selected {
    background-color: rgb(22 78 99);
}

#subject-list .dropdown-option .dropdown-icon,
#country-list .dropdown-option .dropdown-icon {
    color: rgb(6, 182, 212);
    width: 1.125rem;
    height: 1.125rem;
}

#subject-list .dropdown-option .dropdown-label,
#country-list .dropdown-option .dropdown-label {
    color: rgb(24 24 27);
    flex: 1;
}

html.dark #subject-list .dropdown-option .dropdown-label,
html.dark #country-list .dropdown-option .dropdown-label {
    color: rgb(228 228 231);
}

#country-list .dropdown-option .dropdown-code {
    font-weight: 600;
    color: rgb(161 161 170);
    min-width: 3rem;
}

html.dark #country-list .dropdown-option .dropdown-code {
    color: rgb(113 113 122);
}

/* Dropdown no results */
.dropdown-no-results {
    padding: 2rem;
    text-align: center;
    color: rgb(161 161 170);
}

html.dark .dropdown-no-results {
    color: rgb(113 113 122);
}
