/* Filipino-specific styles to match original design */

/* Phone dropdown styling to match index.html */
.iti {
    width: 100%;
    z-index: 12010 !important;
}

.iti input {
    padding-left: 100px !important;
    height: 56px;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.iti input:focus {
    border-color: #2563eb; /* navy-600 */
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.iti input::placeholder {
    color: #9ca3af;
}

.iti--container {
    z-index: 12010 !important;
}

/* Unify focus style across all inputs to match phone field */
#register input[type="text"]:focus,
#register input[type="email"]:focus,
#register input[type="tel"]:focus {
    border-color: #2563eb; /* navy-600 */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
    background: #ffffff;
}

/* Ensure the dropdown can overflow and render above sections */
#register,
#register > div,
.iti {
    position: relative;
    overflow: visible;
    z-index: auto;
}

/* Float the intl-tel-input popup on top */
.iti--container {
    z-index: 200000 !important;
    overflow: visible;
}

.iti__country-list {
    z-index: 200001;
}

/* FAQ Accordion Styles - Support both faq-btn/faq-content and faq-q/faq-a */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    text-align: left;
    background: white;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.faq-btn:hover {
    background: #f9fafb;
}

.faq-btn i {
    transition: transform 0.3s ease;
    color: #2563eb;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content > div {
    padding: 0 1.25rem 1.25rem;
    color: #6b7280;
}

/* Support faq-q/faq-a classes as well */
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    text-align: left;
    background: white;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.faq-q:hover {
    background: #f9fafb;
}

.faq-q i {
    transition: transform 0.3s ease;
    color: #2563eb;
}

.faq-item.active .faq-q i,
.faq-item.active .faq-btn i {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-a.hidden {
    display: none !important;
    max-height: 0;
}

.faq-a:not(.hidden) {
    display: block;
    max-height: 1000px;
}

.faq-item.active .faq-a {
    max-height: 1000px;
}

.faq-item.active .faq-a.hidden {
    display: none !important;
}

.faq-item.active .faq-a:not(.hidden) {
    display: block !important;
    max-height: 1000px;
}

.faq-a > div {
    padding: 0 1.25rem 1.25rem;
    color: #6b7280;
}

/* Mobile Menu Styles */
#mobileMenu {
    display: block;
}

#mobileMenu.show {
    display: block;
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileDrawer {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#mobileDrawer.show {
    transform: translateX(0);
}

#mobileOverlay {
    display: none;
}

#mobileOverlay.show {
    display: block;
}

#mobileOverlay.open {
    display: block;
}

/* Language Dropdown */
#langDropdown {
    display: none;
}

#langDropdown.show {
    display: block;
}

.lang-item {
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-item:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Ensure proper z-index for dropdowns */
.dropdown-menu {
    z-index: 12000 !important;
}

/* Header CTA button styling */
header a[href*="/contact"] {
    text-decoration: none;
}

/* Form input styling consistency */
#register input[type="text"],
#register input[type="email"] {
    border: 2px solid #e5e5e5;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#register input[type="text"]:focus,
#register input[type="email"]:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
