.show_errors {
    display: none;
}
.show_errors label {
    color: #ff7070;
}
/* .as_sign_form ul li .as_input_feild input.has_error { */
input.has_error {
    border: 1px solid #ff6060;
    background: #38330c;
}
hr {
    border-top: 2px solid #092b42;
    border-bottom: 1px solid #104163;
    margin: 30px 0 !important;
}
#overlay {
    position: fixed;
    background: rgb(0 0 0 / 75%);
    width: 100%;
    height: 100%;
    z-index: 9999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.has_error_diag {
    background: #38330c;
    border-top: 2px solid #922121;
    border-bottom: 2px solid #922121;
}
.has_error_box::before {
    border-left: 17px solid #38330c;
}
.has_error_box::after {
    border-right: 17px solid #38330c;
}
#errmsg {
    display: none;
    color: #ff7070;
    padding: 2px 20px;
    background: #17384e;
    border-bottom: 4px solid #031d2e;
}
#errmsg.success_msg {
    color: #41dc71;
}

/* Compatibility Services Styling */
.compatibility_overview {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.love_compatibility_box,
.work_compatibility_box,
.zodiac_compatibility_box,
.marriage_compatibility_box {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.love_compatibility_box:hover,
.work_compatibility_box:hover,
.zodiac_compatibility_box:hover,
.marriage_compatibility_box:hover {
    transform: translateY(-5px);
}

.compatibility_results {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styling improvements */
.flex {
    display: flex;
}

.fmale {
    margin-left: 10px;
}

.disc_m {
    display: flex;
    margin-bottom: 20px;
}

label.disc {
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

/* Compatibility score styling */
.compatibility_overview h3 {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Zodiac signs display */
.zodiac_signs_display {
    font-size: 28px;
    margin: 20px 0;
}

/* Button hover effects */
.as_btn {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    overflow: visible;
    min-width: fit-content;
}

.as_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* General select improvements for all devices */
select.birth-select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background-color: #fff;
    cursor: pointer;
    width: 100%;
}

select.birth-select option {
    background-color: #fff;
    color: #333;
    padding: 10px;
}

/* Mobile-friendly dropdown fixes */
@media (max-width: 768px) {
    select.form-control,
    select.birth-select {
        -webkit-appearance: menulist !important;
        -moz-appearance: menulist !important;
        appearance: menulist !important;
        background-color: #fff !important;
        font-size: 16px !important;
        padding: 12px 10px !important;
        height: auto !important;
        min-height: 50px !important;
        line-height: 1.5 !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        width: 100% !important;
        display: block !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
    }
    
    select.form-control option,
    select.birth-select option {
        background-color: #fff !important;
        color: #333 !important;
        padding: 12px 10px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        min-height: 40px !important;
    }
    
    /* Ensure dropdowns are clickable and visible */
    select.form-control:focus,
    select.birth-select:focus {
        outline: none !important;
        border-color: #ff6b35 !important;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2) !important;
        -webkit-box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2) !important;
    }
    
    select.form-control:active,
    select.birth-select:active {
        background-color: #f8f9fa !important;
    }
    
    /* Fix for iOS Safari - prevent zoom on focus */
    select.form-control,
    select.birth-select,
    input.form-control {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Ensure labels are visible on mobile */
    label[for="birth_month"],
    label[for="birth_day"],
    label[for="birth_year"] {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    /* Add spacing for mobile form groups */
    .form-group.birth-date-field {
        margin-bottom: 20px !important;
        padding: 0 5px !important;
    }
    
    /* Ensure proper column layout on mobile */
    .birth-date-field {
        position: relative;
        z-index: 1;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    select.form-control,
    select.birth-select {
        font-size: 16px !important;
        padding: 15px 10px !important;
        min-height: 55px !important;
    }
    
    .form-group.birth-date-field {
        margin-bottom: 15px !important;
    }
}

/* Fix placeholder visibility - ensure it's not white */
.form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control::-webkit-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control::-moz-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control:-ms-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control::-ms-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Specific fix for overview sections (numerology, tarot, etc.) with dark backgrounds */
.as_overview_wrapper .form-control::placeholder,
.as_overview_inner .form-control::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.as_overview_wrapper .form-control::-webkit-input-placeholder,
.as_overview_inner .form-control::-webkit-input-placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.as_overview_wrapper .form-control::-moz-placeholder,
.as_overview_inner .form-control::-moz-placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.as_overview_wrapper .form-control:-ms-input-placeholder,
.as_overview_inner .form-control:-ms-input-placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.as_overview_wrapper .form-control::-ms-input-placeholder,
.as_overview_inner .form-control::-ms-input-placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

/* Specific fix for select default option (placeholder-like) */
select.form-control option[value=""] {
    color: #6c757d;
}

select.form-control {
    color: #333;
}

/* When no selection made, show placeholder color */
select.form-control:invalid {
    color: #6c757d;
}

/* Fix for selects in overview sections */
.as_overview_wrapper select.form-control option[value=""],
.as_overview_inner select.form-control option[value=""] {
    color: #a0aec0;
}

.as_overview_wrapper select.form-control:invalid,
.as_overview_inner select.form-control:invalid {
    color: #a0aec0 !important;
}

/* Ensure form controls in overview sections have proper styling */
.as_overview_wrapper .form-control,
.as_overview_inner .form-control {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.as_overview_wrapper .form-control:focus,
.as_overview_inner .form-control:focus {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ff6b35 !important;
    outline: none !important;
}

/* Fix for Slick slider interference with form elements */
.as_overview_slider select.form-control,
.as_overview_slider input.form-control {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: auto !important;
}

.as_overview_slider .form-group {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Prevent slider from capturing events on form elements */
.as_overview_slider .slick-list,
.as_overview_slider .slick-track {
    pointer-events: none !important;
}

.as_overview_slider .slick-slide {
    pointer-events: auto !important;
}

/* Ensure the slider doesn't interfere with select dropdowns */
.as_overview_slider.slick-slider {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    user-select: auto !important;
}

.as_overview_slider select,
.as_overview_slider input,
.as_overview_slider button {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    user-select: auto !important;
    pointer-events: auto !important;
}

/* Tarot card responsive layout */
@media (max-width: 767px) {
    .tarot_image {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .tarot_image img.tarot_img {
        max-width: 250px;
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .tarot_text {
        text-align: left;
        padding: 0 15px;
    }
    
    .tarot_text h4 {
        text-align: center;
        margin-bottom: 15px;
    }
}

/* Birth Profile and Compatibility buttons responsive */
.birth-profile-btn,
.compatibility-btn {
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

@media (max-width: 767px) {
    .birth-profile-btn,
    .compatibility-btn {
        padding: 12px 15px !important;
        font-size: 16px !important;
        white-space: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .btn-text-short {
        display: inline;
    }
    
    .btn-text-full {
        display: none;
    }
}

@media (max-width: 480px) {
    .birth-profile-btn,
    .compatibility-btn {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    .birth-profile-btn img,
    .compatibility-btn img {
        width: 16px !important;
        height: 16px !important;
        margin-right: 6px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tarot_image {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .tarot_image img.tarot_img {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
}

/* Logo size control */
.as_logo img {
    max-width: 120px;
    height: auto;
    width: auto;
}

.as_footer_logo img {
    max-width: 100px;
    height: auto;
    width: auto;
}

@media (max-width: 991px) {
    .as_logo img {
        max-width: 100px;
    }
    
    .as_footer_logo img {
        max-width: 90px;
    }
}

@media (max-width: 767px) {
    .as_logo img {
        max-width: 90px;
    }
    
    .as_footer_logo img {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .as_logo img {
        max-width: 80px;
    }
    
    .as_footer_logo img {
        max-width: 70px;
    }
}