/**
 * Apply / Forms Page — Modernised Styles
 *
 * Branded hero, clean form container, iframe sizing.
 *
 * @version 1.0.0
 */

/* ── Hero Banner ──────────────────────────────────────────────── */

.uksr-apply-hero {
    background: linear-gradient(
        135deg,
        rgba(41, 35, 92, 0.95) 0%,
        rgba(41, 35, 92, 0.80) 100%
    );
    background-color: var(--uksr-dark-blue);
    text-align: center;
    padding: 56px 24px;
}

.uksr-apply-hero__inner {
    max-width: var(--uksr-container-max);
    margin: 0 auto;
}

.uksr-apply-hero__title {
    font-size: 42px;
    font-weight: var(--uksr-font-weight-bold);
    color: var(--uksr-white);
    margin: 0;
    line-height: var(--uksr-line-height-tight);
}

/* ── Body / Layout ────────────────────────────────────────────── */

.uksr-apply-body {
    background: #f6f8ee;
    padding: 48px 0;
}

.uksr-apply-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.uksr-apply-article {
    min-width: 0;
}

/* ── Intro Text ───────────────────────────────────────────────── */

.uksr-apply-intro {
    background: var(--uksr-white);
    border-radius: var(--uksr-radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(41, 35, 92, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.uksr-apply-intro p {
    margin: 0 0 8px;
}

.uksr-apply-intro p:last-child {
    margin-bottom: 0;
}

/* ── Form Container ───────────────────────────────────────────── */

.uksr-apply-form {
    background: var(--uksr-white);
    border-radius: var(--uksr-radius-lg);
    padding: 32px;
    border: 1px solid rgba(41, 35, 92, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Iframe — generous height so no internal scroll.
   !important overrides inline style="min-height:900px" from ACF field. */
.uksr-apply-form iframe,
.custom_form iframe {
    width: 100% !important;
    border: none !important;
    min-height: 1400px !important;
}

/* ── Testimonials — Modernised ─────────────────────────────────── */
/* Duplicated from page-single.css §Testimonials since that file
   doesn't load on custom template pages. */

.uksr-page-testimonials {
    max-width: var(--uksr-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.uksr-page-testimonials .owl-carousel .item {
    text-align: center;
    padding: 32px 24px;
}

.uksr-page-testimonials .author_image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.uksr-page-testimonials .author_image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

.uksr-page-testimonials .testimonial_cont {
    max-width: 700px;
    margin: 0 auto;
    color: var(--uksr-grey-700);
    line-height: 1.7;
    font-size: 16px;
    float: none !important;
    width: auto !important;
    text-align: center;
}

.uksr-page-testimonials .testimonial_cont p {
    color: var(--uksr-grey-700);
    margin-bottom: 0;
}

.uksr-page-testimonials .testimonial_cont span {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--uksr-dark-blue);
    font-size: 14px;
}

.uksr-page-testimonials .testimonial_cont .clear {
    display: none;
}

.uksr-page-testimonials .owl-theme .owl-nav [class*="owl-"] {
    color: var(--uksr-dark-blue);
    background: none;
    font-size: 24px;
}

.uksr-page-testimonials .owl-theme .owl-dots .owl-dot span {
    background: var(--uksr-dark-blue);
    opacity: 0.2;
    width: 10px;
    height: 10px;
}

.uksr-page-testimonials .owl-theme .owl-dots .owl-dot.active span {
    background: var(--uksr-magenta);
    opacity: 1;
}

/* ── Parent Override Resets ────────────────────────────────────── */

.uksr-apply-article .article-header,
.uksr-apply-article .entry-content,
.uksr-apply-article .article-footer {
    all: unset;
    display: block;
}

.uksr-apply-layout .home_title,
.uksr-apply-layout .home-stay-title {
    display: none;
}

.uksr-apply-hero + .wrap,
.uksr-apply-hero + #content {
    display: none;
}

/* ── FAQ Accordion ─────────────────────────────────────────────── */

.uksr-faq-list {
    margin-top: 8px;
}

.uksr-faq-item {
    background: var(--uksr-white);
    border-radius: var(--uksr-radius-lg);
    border: 1px solid rgba(41, 35, 92, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
    overflow: hidden;
}

.uksr-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    font-size: 16px;
    font-weight: var(--uksr-font-weight-bold);
    color: var(--uksr-dark-blue);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.uksr-faq-item__question::-webkit-details-marker {
    display: none;
}

.uksr-faq-item__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: 16px;
    position: relative;
}

.uksr-faq-item__icon::before,
.uksr-faq-item__icon::after {
    content: '';
    position: absolute;
    background: var(--uksr-dark-blue);
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.uksr-faq-item__icon::before {
    top: 50%;
    left: 2px;
    right: 2px;
    height: 2px;
    transform: translateY(-50%);
}

.uksr-faq-item__icon::after {
    left: 50%;
    top: 2px;
    bottom: 2px;
    width: 2px;
    transform: translateX(-50%);
}

.uksr-faq-item[open] .uksr-faq-item__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.uksr-faq-item__answer {
    padding: 0 28px 20px;
    color: var(--uksr-grey-700);
    line-height: 1.7;
    font-size: 15px;
}

.uksr-faq-item__answer p {
    margin: 0 0 12px;
}

.uksr-faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* ── Responsive — Tablet ──────────────────────────────────────── */

@media (max-width: 960px) {
    .uksr-apply-hero__title {
        font-size: 34px;
    }
}

/* ── Responsive — Mobile ──────────────────────────────────────── */

@media (max-width: 768px) {
    .uksr-apply-hero {
        padding: 36px 16px;
    }

    .uksr-apply-hero__title {
        font-size: 28px;
    }

    .uksr-apply-body {
        padding: 24px 0;
    }

    .uksr-apply-layout {
        padding: 0 16px;
    }

    .uksr-apply-form {
        padding: 16px;
    }

    .uksr-apply-intro {
        padding: 24px 20px;
    }

    .uksr-apply-form iframe,
    .custom_form iframe {
        min-height: 1200px !important;
    }
}
