/**
 * Site-wide overrides - Dr. Raju's Sleep Centre
 * No inline CSS; use this file for page-specific or override styles.
 */
.rs-footer-map iframe {
    border: 0;
}

.rs-footer-one .rs-footer-map iframe {
    height: 267px !important;
}

/* Footer helpline — ~25% larger type + badge-style panel */
.rs-footer-one .rs-footer-phone-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 22px;
    max-width: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.rs-footer-one .rs-footer-phone-badge .rs-footer-contact-icon {
    margin-inline-end: 0;
    margin-top: 4px;
    line-height: 1;
}

.rs-footer-one .rs-footer-phone-badge .rs-footer-contact-icon i {
    font-size: 28px;
    color: var(--rs-white);
}

.rs-footer-one .rs-footer-phone-badge-body span {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rs-white);
}

.rs-footer-one .rs-footer-phone-badge-body a {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rs-white);
    display: inline-block;
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.rs-footer-one .rs-footer-phone-badge-body a:hover {
    color: var(--rs-theme-primary);
}

.polysomnography-highlight-cards .rs-working-list-item {
    background: var(--rs-theme-primary);
    color: var(--rs-white);
    border-radius: 10px;
    padding: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.polysomnography-highlight-cards .rs-working-list-item::before,
.polysomnography-highlight-cards .rs-working-list-item::after {
    display: none;
}

.polysomnography-highlight-cards .rs-working-list-icon {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.polysomnography-highlight-cards .rs-working-list-icon i {
    color: var(--rs-white);
    font-size: 24px;
}

.polysomnography-highlight-cards .rs-working-list-title,
.polysomnography-highlight-cards .rs-working-list-desc {
    color: var(--rs-white);
}

.polysomnography-highlight-cards .rs-working-list-item:hover {
    background: var(--rs-theme-secondary);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.rs-cta-two .polysomnography-cta-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media only screen and (max-width: 991px) {
    .rs-cta-two .polysomnography-cta-action {
        justify-content: flex-start;
    }
}

.rs-cta-two .polysomnography-cta-action .rs-btn {
    background: var(--rs-white);
    color: var(--rs-title-primary);
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    min-height: 58px;
}

.rs-cta-two .polysomnography-cta-action .rs-btn .icon-box i {
    color: var(--rs-title-primary);
}

.rs-cta-two .polysomnography-cta-action .rs-btn:hover {
    background: var(--rs-theme-secondary);
    color: var(--rs-white);
}

.rs-cta-two .polysomnography-cta-action .rs-btn:hover .icon-box i {
    color: var(--rs-white);
}

.polysomnography-decor-list {
    background: linear-gradient(135deg, #fff7f9 0%, #ffffff 100%);
    border: 1px solid rgba(157, 0, 38, 0.15);
    border-left: 4px solid var(--rs-theme-primary);
    border-radius: 10px;
    padding: 22px 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.polysomnography-decor-list .polysomnography-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.polysomnography-decor-list .polysomnography-check-item:not(:last-child) {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(157, 0, 38, 0.22);
}

.polysomnography-decor-list .polysomnography-check-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rs-theme-primary);
    color: var(--rs-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    font-size: 12px;
}

.polysomnography-decor-list p {
    margin-bottom: 0;
    padding-inline-start: 0;
}

.polysomnography-decor-list p::before {
    display: none;
}

.rs-services-details-content-wrapper .rs-services-details-content-left,
.rs-services-details-content-wrapper .rs-services-details-content-right {
    display: flex;
    flex-direction: column;
}

.rs-services-details-content-wrapper .rs-services-details-content-left .polysomnography-decor-list,
.rs-services-details-content-wrapper .rs-services-details-content-right .polysomnography-decor-list {
    flex: 1;
}

/* blog.php — light copy on breadcrumb + blog hero band (split-title wraps each character in child nodes) */
body.page-blog .rs-breadcrumb-one .rs-breadcrumb-title,
body.page-blog .rs-breadcrumb-one .rs-breadcrumb-desc,
body.page-blog .rs-breadcrumb-one .rs-breadcrumb-menu a,
body.page-blog .rs-breadcrumb-one .rs-breadcrumb-menu ul li:last-child {
    color: #fff !important;
}

body.page-blog .rs-breadcrumb-one .rs-breadcrumb-desc {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* rs-blog-two band (home + blog listing): light heading over gradient; SplitText nodes stay inline */
.rs-blog-two .section-title-wrapper .section-subtitle {
    color: #fff !important;
}

.rs-blog-two .section-title-wrapper .section-desc {
    color: rgba(255, 255, 255, 0.92) !important;
}

.rs-blog-two .section-title-wrapper .section-title,
.rs-blog-two .section-title-wrapper .section-title * {
    color: #fff !important;
}

.rs-blog-two .section-title-wrapper .section-title .word,
.rs-blog-two .section-title-wrapper .section-title div {
    display: inline-block;
    vertical-align: top;
}

/* Blog listing page (dynamic grid) */
.rs-blog-listing .blog-listing-grid .rs-blog-item {
    height: 100%;
}

.rs-blog-listing .blog-empty-state {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    color: var(--rs-text-primary);
    font-size: 1.05rem;
}

.page-blog .rs-blog-listing .section-title-wrapper .section-title,
.page-blog .rs-blog-listing .section-title-wrapper .section-title * {
    color: #fff !important;
}

.page-blog .rs-blog-listing .section-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Blog page — horizontal slider */
.page-blog .page-blog-slider .section-title-wrapper .section-title,
.page-blog .page-blog-slider .section-title-wrapper .section-title * {
    color: #fff !important;
}

.page-blog .page-blog-slider .section-desc,
.page-blog .page-blog-slider .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.page-blog .blog-slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.page-blog .blog-slider-controls .rs-swiper-btn {
    position: static;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.page-blog .blog-slider-controls .rs-swiper-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

.page-blog .blog-slider-pagination {
    position: static;
    margin-top: 20px;
}

.page-blog .blog-slider-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.page-blog .blog-slider-pagination .swiper-pagination-bullet-active {
    background: #fff;
}

/* Book appointment form — aligns with rs-contact-four fields */
.appointment-form .section-title-wrapper > p {
    color: var(--rs-text-primary);
    max-width: 720px;
}

.appointment-form-section-label {
    font-weight: 600;
    color: var(--rs-title-primary);
    font-size: 16px;
}

.appointment-form .form-field-label,
.rs-form-validated .form-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rs-title-primary);
    margin-bottom: 8px;
}

.rs-contact-input-box.is-invalid .form-field-label {
    color: #dc3545;
}

.appointment-check-row {
    margin-bottom: 14px;
}

.appointment-check-row label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.55;
    color: var(--rs-text-primary);
}

.appointment-check-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: var(--rs-theme-primary);
    opacity: 1;
    position: relative;
    z-index: 1;
}

.appointment-check-row a {
    text-decoration: underline;
}

.appointment-date-field .rs-contact-input input[type="date"] {
    min-height: 52px;
}

/* Header dropdowns (About, Diagnostics, Treatments): row hover fill + chevron always visible */
.rs-header-area.rs-header-one .main-menu .submenu.last-children > li {
    padding-top: 6px;
    padding-bottom: 6px;
    padding-inline-start: 14px;
    padding-inline-end: 14px;
}

.rs-header-area.rs-header-one .main-menu .submenu.last-children > li:first-child {
    padding-top: 0;
}

.rs-header-area.rs-header-one .main-menu .submenu.last-children > li:last-child {
    padding-bottom: 0;
}

.rs-header-area.rs-header-one .main-menu .submenu.last-children li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 6px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.rs-header-area.rs-header-one .main-menu .submenu.last-children li > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054";
    font-size: 11px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.rs-header-area.rs-header-one .main-menu .submenu.last-children li:hover > a,
.rs-header-area.rs-header-one .main-menu .submenu.last-children li > a:hover {
    background-color: rgba(255, 255, 255, 0.58);
}

.rs-header-area.rs-header-one .main-menu .submenu.last-children li:hover > a::before,
.rs-header-area.rs-header-one .main-menu .submenu.last-children li > a:hover::before {
    color: var(--rs-theme-primary);
    transform: translateX(2px);
}

#form-messages,
#appointment-form-messages {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    display: none;
}

#form-messages.success,
#appointment-form-messages.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#form-messages.error,
#appointment-form-messages.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Form field validation */
.rs-contact-input-box.is-invalid .rs-contact-input input,
.rs-contact-input-box.is-invalid .rs-contact-input textarea,
.rs-contact-input-box.is-invalid .rs-contact-input select,
.rs-contact-input-box.is-invalid .rs-contact-input .nice-select {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
    padding-left: 2px;
}

.appointment-check-row.is-invalid {
    outline: 2px solid rgba(220, 53, 69, 0.45);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(220, 53, 69, 0.04);
}

.appointment-check-row.is-invalid label {
    flex-wrap: wrap;
}

.appointment-check-row .field-error {
    flex: 1 1 100%;
    margin-left: 32px;
    margin-top: 6px;
}

#appointment-consent-group .appointment-form-section-label {
    margin-top: 10px;
}

.admin-card .mb-3.is-invalid .form-control,
.admin-card .mb-3.is-invalid .form-select {
    border-color: #dc3545;
}

