/* Hero Form Styles */
.hero-form {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-form .form-control,
.hero-form .form-select {
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    background-color: transparent !important;
    color: white !important;
    font-size: 14px; /* Smaller font size */
    padding: 10px 12px; /* Reduced padding */
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

.hero-form .form-control-lg,
.hero-form .form-select-lg {
    font-size: 14px !important; /* Override large size */
    padding: 10px 12px !important; /* Override large padding */
}

.hero-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
    border-color: #1a2f49;
    box-shadow: 0 0 0 0.2rem rgba(26, 47, 73, 0.25);
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

.hero-form .form-control:hover,
.hero-form .form-select:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

.hero-form .input-group .form-select {
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    background-color: transparent !important;
    color: white !important;
    font-size: 12px; /* Even smaller for country code */
    padding: 10px 8px;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

.hero-form .input-group .form-control {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
}

.hero-form .input-group .form-select:focus + .form-control,
.hero-form .input-group .form-control:focus {
    border-left-color: #1a2f49;
}

.hero-form h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 18px; /* Smaller title */
    margin-bottom: 20px !important;
}

.hero-form .form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: not-allowed;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
}

.hero-form .btn-main {
    font-size: 14px; /* Smaller button text */
    padding: 10px 20px;
}

.hero-form .btn-line {
    font-size: 13px; /* Smaller secondary button */
    padding: 8px 16px;
}

/* Overview Form Styles */
.overview-form {
    max-width: 600px;
    margin: 0 auto;
}

.overview-form .form-control,
.overview-form .form-select {
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 10px 12px;
    color: #333;
}

.overview-form .form-control::placeholder {
    color: #999;
    font-size: 14px;
}

.overview-form .form-control:focus,
.overview-form .form-select:focus {
    border-color: #1a2f49;
    box-shadow: 0 0 0 0.2rem rgba(26, 47, 73, 0.25);
    outline: none;
}

.overview-form .input-group .form-select {
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 12px;
    padding: 10px 8px;
}

.overview-form .input-group .form-control {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
}

.overview-form .input-group .form-select:focus + .form-control,
.overview-form .input-group .form-control:focus {
    border-left-color: #1a2f49;
}

.overview-form h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px !important;
}

.overview-form .btn-main {
    font-size: 14px;
    padding: 10px 30px;
    margin-top: 10px;
}

/* Flat Button Styles */
.btn-flat {
    background: #1a2f49;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 47, 73, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-flat:hover {
    background: #2a4a6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 47, 73, 0.4);
    color: white;
}

.btn-flat:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(26, 47, 73, 0.3);
}

.btn-flat span {
    position: relative;
    z-index: 2;
}

.btn-flat::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

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

@media (max-width: 768px) {
    .btn-flat {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-form {
        margin-top: 30px;
    }

    .hero-form .form-control,
    .hero-form .form-select,
    .hero-form .form-control-lg,
    .hero-form .form-select-lg {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    .overview-form .form-control,
    .overview-form .form-select {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    min-width: 120px;
}

.language-switcher select {
    border: 1px solid #1a2f49 !important;
    border-radius: 8px !important;
    background-color: white !important;
    color: black !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 35px 12px 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
    width: 100% !important;
    -webkit-text-fill-color: black !important;
    opacity: 1 !important;
    text-align: center !important;
}

/* Force black text color on all browsers */
.language-switcher select,
.language-switcher select:focus,
.language-switcher select:active,
.language-switcher select:hover {
    color: black !important;
    background: white !important;
    opacity: 1 !important;
    -webkit-text-fill-color: black !important;
    text-shadow: none !important;
}

.language-switcher select:hover {
    background: #f8f9fa !important;
    border-color: #1a2f49 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: black !important;
    -webkit-text-fill-color: black !important;
}

.language-switcher select:focus {
    outline: none !important;
    border-color: #1a2f49 !important;
    box-shadow: 0 0 0 0.2rem rgba(26, 47, 73, 0.25) !important;
    background: white !important;
    color: black !important;
    -webkit-text-fill-color: black !important;
    opacity: 1 !important;
}

.language-switcher::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white !important;
    font-size: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.language-switcher:hover::after {
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.language-switcher select option {
    background: white !important;
    color: black !important;
    padding: 12px 15px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    opacity: 1 !important;
    -webkit-text-fill-color: black !important;
}

/* Override any browser default option styling */
.language-switcher select option:checked {
    background: #f8f9fa !important;
    color: black !important;
    -webkit-text-fill-color: black !important;
    opacity: 1 !important;
}

/* Additional fixes for webkit browsers */
.language-switcher select::-webkit-appearance {
    -webkit-appearance: none !important;
}

.language-switcher select::-moz-appearance {
    -moz-appearance: none !important;
}

/* Ensure no text transparency */
.language-switcher select * {
    color: white !important;
    opacity: 1 !important;
    -webkit-text-fill-color: white !important;
}

/* Additional fallback rules to ensure text visibility */
.language-switcher select {
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    opacity: 1 !important;
}

.language-switcher select::-webkit-input-placeholder {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

.language-switcher select::placeholder {
    color: white !important;
    opacity: 1 !important;
}

/* Center align the header column */
.de-flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .language-switcher select {
        font-size: 13px !important;
        padding: 10px 30px 10px 12px !important;
        height: 42px;
    }

    .language-switcher::after {
        right: 10px;
        font-size: 10px;
    }
}

/* Ensure button and language switcher have same height and alignment */
.btn-main {
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px;
    padding: 12px 20px !important;
}

/* Side by side layout adjustments */
.d-flex.align-items-center.gap-3 {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

@media (max-width: 992px) {
    .language-switcher {
        min-width: 120px;
    }

    .btn-main {
        min-width: 130px !important;
        font-size: 13px !important;
    }

    .d-flex.align-items-center.gap-3 {
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    /* Option 1: Hide completely on mobile to avoid conflicts */
    .d-flex.align-items-center.gap-3 {
        display: none !important;
    }

    /* Ensure mobile menu works properly */
    .menu_side_area {
        display: block !important;
        position: relative;
        z-index: 9999;
    }

    /* Option 2: Alternative - move language switcher to a different location */
    .language-switcher-mobile {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 10px;
        z-index: 1000;
    }

    .language-switcher-mobile select {
        font-size: 16px !important;
        padding: 8px 15px !important;
        border: 1px solid #1a2f49 !important;
        border-radius: 6px !important;
        background: white !important;
        color: black !important;
        text-align: center !important;
        min-width: 80px;
    }
}

/* Mobile Language Switcher in Menu */
.mobile-lang-switcher {
    display: none !important; /* Hidden by default on desktop */
    padding: 15px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 10px !important;
}

/* Desktop: Hide mobile switcher, show regular switcher */
@media (min-width: 769px) {
    .mobile-lang-switcher {
        display: none !important;
    }

    .d-flex.align-items-center.gap-3 {
        display: flex !important;
    }
}

.mobile-language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-lang-select {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a2f49 !important;
    border: 1px solid #1a2f49 !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 150px !important;
    min-height: 50px !important;
    line-height: 1.4 !important;
    -webkit-text-fill-color: #1a2f49 !important;
    opacity: 1 !important;
}

.mobile-lang-select:hover {
    background: white !important;
    border-color: #2a4a6b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 47, 73, 0.2);
}

.mobile-lang-select:focus {
    outline: none !important;
    border-color: #1a2f49 !important;
    box-shadow: 0 0 0 0.2rem rgba(26, 47, 73, 0.25) !important;
}

.mobile-lang-select option {
    background: white !important;
    color: #1a2f49 !important;
    padding: 15px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    min-height: 45px !important;
    -webkit-text-fill-color: #1a2f49 !important;
}

/* Show mobile language switcher only when mobile menu is active */
@media (max-width: 768px) {
    .mobile-lang-switcher {
        display: block !important;
        padding: 20px !important;
    }

    .mobile-language-selector {
        padding: 10px 0 !important;
    }

    .mobile-lang-select {
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
        display: block !important;
        height: 55px !important;
        font-size: 17px !important;
        padding: 16px 20px !important;
        line-height: 1.2 !important;
    }

    .mobile-lang-select option {
        height: 50px !important;
        padding: 16px !important;
        font-size: 17px !important;
        line-height: 1.2 !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Ensure mobile menu works properly */
    .menu_side_area {
        display: block !important;
        position: relative;
        z-index: 9999;
    }

    /* Keep desktop elements hidden */
    .d-flex.align-items-center.gap-3 {
        display: none !important;
    }
}

/* Global form input fixes for hero section */
#section-hero .form-control,
#section-hero .form-select,
#section-hero input,
#section-hero select {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

#section-hero .form-control::placeholder,
#section-hero input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

#section-hero .form-control:focus,
#section-hero .form-select:focus,
#section-hero input:focus,
#section-hero select:focus {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

#section-hero .form-control:hover,
#section-hero .form-select:hover,
#section-hero input:hover,
#section-hero select:hover {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

/* Ultra specific rules for form text visibility */
body #section-hero .hero-form input[type="text"],
body #section-hero .hero-form input[type="tel"],
body #section-hero .hero-form select,
body #section-hero .hero-form .form-control,
body #section-hero .hero-form .form-select {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
    background-color: transparent !important;
}

body #section-hero .hero-form input[type="text"]:focus,
body #section-hero .hero-form input[type="tel"]:focus,
body #section-hero .hero-form select:focus,
body #section-hero .hero-form .form-control:focus,
body #section-hero .hero-form .form-select:focus {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

/* Force text visibility with the highest specificity possible */
html body #section-hero .hero-form input,
html body #section-hero .hero-form select {
    color: white !important;
    -webkit-text-fill-color: white !important;
    opacity: 1 !important;
}

/* Custom Alert Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.custom-alert-modal {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.custom-alert-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.custom-alert-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.custom-alert-icon.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.custom-alert-icon .success-icon {
    display: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900;
}

.custom-alert-icon .error-icon {
    display: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    font-size: 50px;
}

.custom-alert-icon.success .success-icon {
    display: inline;
    animation: bounceIn 0.6s ease;
}

.custom-alert-icon.error .error-icon {
    display: inline;
    animation: pulseError 0.6s ease;
}

.custom-alert-content h3 {
    color: #1a2f49;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

.custom-alert-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.custom-alert-close {
    background: linear-gradient(135deg, #1a2f49, #2a4a6b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.custom-alert-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 47, 73, 0.4);
}

.custom-alert-close:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseError {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
    50% {
        transform: scale(0.95);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shakeIn {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
    100% {
        transform: translateX(0);
    }
}
