/* --- Agent Registration Page Styles --- */

/* 1. Reset & Variables */
:root {
    --btc-primary-blue: #023b74;
    --btc-secondary-blue: #9fbde0;
    /* The light blue for number boxes */
    --btc-text-dark: #121212;
    --btc-text-grey: #555555;
    --btc-bg-beige: #f9f8f6;
    --btc-border-color: #eeeeee;
    --btc-white: #ffffff;
    --btc-font-main: 'Inter Tight', sans-serif;
}

.btc-agent-registration {
    font-family: var(--btc-font-main), sans-serif;
    color: var(--btc-text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: var(--btc-white);
}

.btc-agent-registration * {
    box-sizing: border-box;
}

.btc-agent-registration h1,
.btc-agent-registration h2,
.btc-agent-registration h3,
.btc-agent-registration h4 {
    font-weight: 600;
    color: var(--btc-text-dark);
    letter-spacing: -0.02em;
    /* Inter Tight characteristic */
}

.btc-agent-registration p {
    color: var(--btc-text-grey);
    font-size: 0.9375rem;
    /* 15px */
    line-height: 1.6;
    font-weight: 400;
}

/* 2. New Agent Hero Section - Two Column */
.btc-agent-registration .btc-agent-hero {
    padding: 40px 20px;
    background-color: var(--btc-white);
}

.btc-agent-registration .btc-agent-hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Left: Testimonial Carousel */
.btc-agent-registration .btc-agent-testimonial {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

/* Carousel Container */
.btc-agent-registration .btc-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel Slides */
.btc-agent-registration .btc-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.btc-agent-registration .btc-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Carousel Dots */
.btc-agent-registration .btc-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.btc-agent-registration .btc-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btc-agent-registration .btc-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.btc-agent-registration .btc-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.btc-agent-registration .btc-agent-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.btc-agent-registration .btc-testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(180deg, rgba(0, 40, 80, 0.85) 0%, rgba(0, 40, 80, 0.4) 60%, transparent 100%);
}

.btc-agent-registration .btc-testimonial-quote {
    padding: 0px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--btc-white);
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-left: 0px;
}

.btc-agent-registration .btc-testimonial-author {
    display: inline-block;
}

.btc-agent-registration .btc-author-name {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--btc-white);
}

/* Right: Form Section */
.btc-agent-registration .btc-agent-form-section {
    background: var(--btc-white);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.btc-agent-registration .btc-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.btc-agent-registration .btc-form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--btc-text-dark);
}

.btc-agent-registration .btc-form-subtitle {
    font-size: 0.95rem;
    color: var(--btc-text-grey);
    margin: 0;
}

.btc-agent-registration .btc-agent-form-section .btc-iframe-container {
    flex: 1;
    margin: 0;
}

.btc-agent-registration .btc-agent-form-section .btc-iframe-container iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}

.btc-agent-registration .btc-form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Responsive: Tablet */
@media (max-width: 992px) {
    .btc-agent-registration .btc-agent-hero-container {
        grid-template-columns: 1fr;
    }

    .btc-agent-registration .btc-agent-testimonial {
        min-height: 400px;
    }

    .btc-agent-registration .btc-testimonial-quote {
        font-size: 1.25rem;
    }
}

/* Responsive: Mobile */
@media (max-width: 576px) {
    .btc-agent-registration .btc-agent-hero {
        padding: 20px 15px;
    }

    .btc-agent-registration .btc-agent-testimonial {
        min-height: 350px;
    }

    .btc-agent-registration .btc-testimonial-overlay {
        padding: 25px 20px;
    }

    .btc-agent-registration .btc-testimonial-quote {
        font-size: 1.1rem;
    }

    .btc-agent-registration .btc-agent-form-section {
        padding: 30px 20px;
    }

    .btc-agent-registration .btc-form-header h2 {
        font-size: 1.4rem;
    }
}

/* 3. "Why Partner" Grid Section */
.btc-agent-registration .btc-why-partner {
    padding: 100px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.btc-agent-registration .btc-why-partner h2 {
    font-size: 2.2rem;
    margin-bottom: 80px;
    font-weight: 600;
}

.btc-agent-registration .btc-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: Stacked */
}

.btc-agent-registration .btc-feature-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Text aligns left inside the blocks */
}

.btc-agent-registration .btc-feature-item h3 {
    font-size: 1.125rem;
    /* 18px */
    margin-bottom: 12px;
    color: var(--btc-text-dark);
}

/* The Logo Card */
.btc-agent-registration .btc-logo-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.btc-agent-registration .btc-logo-card {
    background: var(--btc-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft diffuse shadow */
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Grid Layout (The complex part) */
@media (min-width: 992px) {
    .btc-agent-registration .btc-features-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .btc-agent-registration .btc-feature-item {
        border-color: var(--btc-border-color);
        border-style: solid;
        border-width: 0;
    }

    /* 1. Left Item: Border Right, Border Bottom (to align with center items) */
    .btc-agent-registration .btc-feat-1 {
        grid-column: 1;
        grid-row: 1;
        border-right-width: 1px;
        border-bottom-width: 1px;
    }

    /* 2. Center Item (Logo): Border Bottom */
    .btc-agent-registration .btc-feat-logo {
        grid-column: 2;
        grid-row: 1;
        border-bottom-width: 1px;
    }

    /* 3. Right Item: Border Left (or just rely on previous border right), Border Bottom */
    .btc-agent-registration .btc-feat-2 {
        grid-column: 3;
        grid-row: 1;
        border-left-width: 1px;
        border-bottom-width: 1px;
    }

    /* 4. Bottom Center Item */
    .btc-agent-registration .btc-feat-3 {
        grid-column: 2;
        grid-row: 2;
        border-right-width: 1px;
        /* Visual balance */
        border-left-width: 1px;
    }

    /* REVISED BORDER STRATEGY FOR PIXEL PERFECTION */
    .btc-agent-registration .btc-feature-item {
        border: none;
    }

    /* Reset */

    /* Vertical Dividers */
    .btc-agent-registration .btc-feat-1 {
        border-right: 1px solid var(--btc-border-color);
        border-bottom: 1px solid var(--btc-border-color);
    }

    .btc-agent-registration .btc-feat-2 {
        border-left: 1px solid var(--btc-border-color);
        border-bottom: 1px solid var(--btc-border-color);
    }

    /* The logo cell itself doesn't have borders, the neighbors do.
       But we need the bottom line. */
    .btc-agent-registration .btc-feat-logo {
        border-bottom: 1px solid var(--btc-border-color);
    }

    /* Bottom center item needs to look distinct */
    .btc-agent-registration .btc-feat-3 {
        border-left: 1px solid var(--btc-border-color);
        border-right: 1px solid var(--btc-border-color);
    }
}

/* 3.5. Registration Form Section */
.btc-agent-registration .btc-registration-form {
    padding: 60px 20px;
    background-color: var(--btc-white);
}

.btc-agent-registration .btc-iframe-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.btc-agent-registration .btc-iframe-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .btc-agent-registration .btc-registration-form {
        padding: 40px 15px;
    }

    .btc-agent-registration .btc-iframe-container iframe {
        height: 600px;
    }
}

/* 4. "How it Works" Section */
.btc-agent-registration .btc-how-it-works {
    background: linear-gradient(to bottom, #F4F0EA 0%, #F4F0EA 65%, #ffffff 100%);
    padding: 100px 20px;
    text-align: center;
}

.btc-agent-registration .btc-how-it-works h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.btc-agent-registration .btc-subtitle {
    margin-bottom: 70px;
    font-size: 1.1rem;
    color: #888;
    font-weight: 300;
}

.btc-agent-registration .btc-steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .btc-agent-registration .btc-steps-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .btc-agent-registration .btc-steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btc-agent-registration .btc-step-card {
    background: var(--btc-white);
    padding: 30px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    /* Very subtle shadow like the design */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.btc-agent-registration .btc-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* The Number Box */
.btc-agent-registration .btc-step-num-box {
    background-color: var(--btc-secondary-blue);
    color: var(--btc-primary-blue);
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 6px;
    /* Slightly rounded corners */
}

.btc-agent-registration .btc-step-content h4 {
    font-size: 0.95rem;
    /* ~15px */
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--btc-text-dark);
    font-weight: 700;
}

.btc-agent-registration .btc-step-content p {
    font-size: 0.8125rem;
    /* ~13px */
    line-height: 1.5;
    color: var(--btc-text-grey);
    margin: 0;
}

/* Logo Styling */
.btc-agent-registration .btc-boat-logo {
    width: 140px;
    height: auto;
}

/* 5. Locations Slider Section */
.btc-agent-registration .btc-agent-locations {
    padding: 60px 20px;
    background: #fff;
    overflow: hidden;
}

/* Border track lines with center fade */
.btc-agent-registration .btc-locations-border-line {
    height: 1px;
    max-width: 1300px;
    margin: 0 auto;
    background: linear-gradient(to right,
            transparent 0%,
            #ddd 15%,
            #ddd 85%,
            transparent 100%);
}

.btc-agent-registration .btc-locations-border-line.top {
    margin-bottom: 0;
}

.btc-agent-registration .btc-locations-border-line.bottom {
    margin-top: 0;
}

.btc-agent-registration .btc-agent-locations-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

.btc-agent-registration .btc-agent-locations h2 {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--btc-text-dark);
    padding-left: 10px;
}

/* Track wrapper for overflow hidden */
.btc-agent-registration .btc-locations-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Infinite scrolling track */
.btc-agent-registration .btc-locations-track {
    display: flex;
    gap: 24px;
    animation: scroll-locations 35s linear infinite;
    width: max-content;
}

/* Location card - larger for 3-card visible layout */
.btc-agent-registration .btc-location-card {
    flex-shrink: 0;
    width: 230px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 8px;
}

.btc-agent-registration .btc-location-image {
    height: 220px;
    overflow: hidden;
}

.btc-agent-registration .btc-location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 10px;
}


.btc-agent-registration .btc-location-info {
    padding: 8px 4px 8px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.btc-agent-registration .btc-location-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--btc-text-dark);
}

.btc-agent-registration .btc-location-arrow {
    font-size: 1.2rem;
    color: #999;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btc-agent-registration .btc-location-card:hover .btc-location-arrow {
    transform: translateX(4px);
    color: var(--btc-text-dark);
}

/* Keyframe animation for infinite scroll */
@keyframes scroll-locations {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.btc-agent-registration .btc-locations-track:hover {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .btc-agent-registration .btc-location-card {
        width: 260px;
    }

    .btc-agent-registration .btc-location-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .btc-agent-registration .btc-agent-locations {
        padding: 40px 16px;
    }

    .btc-agent-registration .btc-agent-locations-container {
        padding: 30px 0;
    }

    .btc-agent-registration .btc-agent-locations h2 {
        font-size: 1.3rem;
        margin-bottom: 24px;
        text-align: center;
        padding-left: 0;
    }

    .btc-agent-registration .btc-location-card {
        width: 220px;
    }

    .btc-agent-registration .btc-location-image {
        height: 160px;
    }

    .btc-agent-registration .btc-locations-track {
        gap: 16px;
    }

    .btc-agent-registration .btc-locations-border-line {
        max-width: 90%;
    }
}