/* ==========================================================================
   Satnam Waheguru - Shri Guru Nanak Dev Ji
   Product Page: https://www.applystudyvisa.com
   Copyright 2025 Developed by Team Apply Study Visa :)
   ========================================================================== */

/* ==========================================================================
   Root Variables
   ========================================================================== */
   :root {
    --primary-color: #fcb900; /* Primary theme color (yellow) */
    --accent-color: #5D5D5D; /* Secondary color for text and borders */
    --whatsapp-green: #25D366; /* WhatsApp green */
    --whatsapp-green-hover: #20BA56; /* Darker green for hover */
}

/* ==========================================================================
   General Form Elements
   ========================================================================== */
.form-control {
    border: 1px solid #d7dae8;
    height: 50px;
    border-radius: 16px;
    transition: all 0.3s ease;
    /* Custom select arrow */
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
}

.form-control:focus {
    border-color: #263f92; /* Blue border on focus */
    box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.25); /* Orange glow */
}

.form-control2 {
    border: 1px solid #d7dae8;
    max-height: 42px;
    border-radius: 12px;
    width: 100%;
    padding: 10px;
    transition: all 0.3s ease;
}

.form-control3 {
    border: 1px solid #d7dae8;
    height: 50px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.form-group label {
    font-weight: normal; /* Normal weight for form labels */
}

.input-field label,
.input-field input,
.custom-form-element {
    display: block;
    margin-bottom: 10px;
}

/* Required field styling */
.required {
    border-color: red;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-color); /* Yellow */
    border: none;
    border-radius: 16px;
    height: 50px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-color: #007bff; /* Blue border */
}

.btn-primary:hover {
    background-color: #263f92; /* Blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.remove-filter {
    background-color: #263f92; /* Blue */
    border: none;
    border-radius: 16px;
    height: 50px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-color: var(--primary-color); /* Yellow border */
}

.btn-link {
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

/* WhatsApp Button Styling */
a.rbt-moderbt-btn.whatsapp {
    display: inline-block;
    height: 60px;
    line-height: 60px;
    padding: 0 26px;
    text-decoration: none;
    border-radius: 30px; /* Rounded corners */
    position: relative;
    z-index: 1; /* Ensures text/icon stay above pseudo-element */
    background-color: transparent; /* No initial background, handled by ::before */
    transition: color 0.3s ease;
}

/* Pseudo-Element for WhatsApp Button */
a.rbt-moderbt-btn.whatsapp::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 30px; /* Matches button’s rounded corners */
    background: #25D366; /* WhatsApp green */
    opacity: 0.5; /* Semi-transparent initially */
    width: 56px; /* Starts as a circle */
    height: 56px;
    z-index: -1; /* Behind text/icon */
    transition: all 0.3s ease; /* Smooth transition for width and opacity */
}

/* Hover Effect for Pseudo-Element */
a.rbt-moderbt-btn.whatsapp:hover::before {
    width: 100%; /* Expands to full width */
    background: #25D366; /* Maintains WhatsApp green */
    opacity: 1; /* Fully opaque */
}

/* ==========================================================================
   Chip Toggles
   ========================================================================== */
.chip-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    flex: 0 0 49.3%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 1rem;
    cursor: pointer;
    background: #f9f9f9;
    color: #333;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
    text-align: center;
}

.chip.full {
    flex: 0 0 100%; /* Full-width chips */
}

.chip input {
    display: none;
}

.chip i {
    font-size: 2rem;
    color: inherit;
}

.chip:has(input:checked) {
    background-color: #2f57ef; /* Blue when checked */
    border-color: #2f57ef;
    color: #fff;
}

.chip:has(input:checked) i,
.chip:has(input:checked) span {
    color: #fff;
}

/* ==========================================================================
   Range Sliders
   ========================================================================== */
/* Multi-Range Slider */
.multi-range-slider {
    position: relative;
    width: 100%;
}

.multi-range-slider input[type="range"] {
    pointer-events: none;
    position: absolute;
    -webkit-appearance: none;
    width: 100%;
    margin: 0;
}

.multi-range-slider input[type="range"]::-webkit-slider-runnable-track {
    background: #e1e1e1;
    height: 5px;
}

.multi-range-slider input[type="range"]:focus {
    outline: none;
}

.multi-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3958ef; /* Blue thumb */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7.5px;
}

.multi-range-slider input[type="range"].upper::-webkit-slider-thumb {
    z-index: 2; /* Upper thumb above lower */
}

/* Single Range Slider */
input[type="range"].styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    margin: 0.75rem 0;
    background: transparent;
    cursor: pointer;
}

input[type="range"].styled-slider::-webkit-slider-runnable-track {
    height: 5px;
    background: #ddd;
    border-radius: 4px;
}

input[type="range"].styled-slider::-moz-range-track {
    height: 5px;
    background: #ddd;
    border-radius: 5px;
}

input[type="range"].styled-slider::-ms-track {
    height: 5px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"].styled-slider::-ms-fill-lower,
input[type="range"].styled-slider::-ms-fill-upper {
    background: #ddd;
    border-radius: 5px;
}

input[type="range"].styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    background: #2f57ef;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

input[type="range"].styled-slider::-webkit-slider-thumb:hover {
    background: #2f57ef;
    transform: scale(1.1);
}

input[type="range"].styled-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

input[type="range"].styled-slider::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

input[type="range"].styled-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

input[type="range"].styled-slider::-ms-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* ==========================================================================
   Collapsible Sections
   ========================================================================== */
.collapsible {
    cursor: pointer;
    padding: 16px;
    border-radius: 16px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    margin-top: 5px;
}

.collapsible:after {
    content: '\002B'; /* Plus sign */
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.contentcollapsible {
    padding: 15px;
    display: none;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #d7dae8;
    border-radius: 16px;
}

/* ==========================================================================
   Cards and Program Content
   ========================================================================== */
.card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    background-clip: border-box;
}

.card-header {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.program-card {
    width: 100%;
    margin: 8px 0;
    border: 1px solid #d7dae8;
    border-radius: 16px;
    padding: 10px 10px 8px;
    background-color: #ffffff;
}

.program-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: start;
    align-items: center;
}

.program-content-new {
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
}

.university-logo {
    width: 60px;
    height: 60px;
    border: 1px solid #d7dae8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-details {
    flex-grow: 1;
}

.program-details h2 {
    font-size: 1.5em;
}

.attributes-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2em 0;
    width: 100%;
}

.attribute-item dt,
.attribute-item dd {
    margin: 0;
    padding: 0 0.2em;
}

.attribute-item dd.attribute-value {
    flex-grow: 1;
    text-align: right;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.details-button,
.apply-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ==========================================================================
   Content Containers
   ========================================================================== */
.content-display-8 {
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #d7dae8;
    border-radius: 20px;
    overflow: hidden;
}

.content-display-4 {
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #d7dae8;
    border-radius: 20px;
    margin: 0 -16px 0 0;
}

.content-p-4 {
    padding: 16px 16px 0;
}

/* ==========================================================================
   Miscellaneous
   ========================================================================== */
.no-results {
    border: 1px solid #d7dae8;
    padding: 15px;
    border-radius: 16px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.searchtag {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 16px;
}

.version-text {
    font-size: 0.7rem;
}

.result-box p {
    font-size: 14px;
    color: #777;
}

.result-box strong {
    color: #444;
}

#english-score,
#Listening,
#Reading,
#Writing,
#Speaking,
.result-box hr {
    display: none;
}

.hidden {
    display: none;
}

hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Tooltips
   ========================================================================== */
/* Provided tooltip styles */
.tooltip-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 6px;
}
.tooltip-icon .tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 999;
    bottom: 125%; /* Position above badge */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    font-size: 12px;
}
.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* Mobile optimizations */
@media (max-width: 576px) {
    .tooltip-icon .tooltip-text {
        white-space: normal; /* Allow text wrapping */
        max-width: 80vw; /* Constrain to 80% of viewport */
        font-size: 10px; /* Smaller text */
        padding: 4px 6px; /* Tighter padding */
        bottom: 100%; /* Closer to badge */
        padding: 8px 8px;
    }
    .tooltip-text {
        /* Prevent overflow */
        left: max(10px, min(calc(50% - 10px), calc(100vw - 100% - 10px)));
        transform: none; /* Remove centering */
    }
}
/* Arrow for tooltip */
.tooltip-icon .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%; /* Arrow below tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
