/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #c31432;
    --secondary-color: #333;
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Adjust side space for registration page to keep a small gap */
.container-fluid, .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: #a01129;
}

/* Header Styles */
header {
    border-bottom: 1px solid var(--border-color);
}

.main-heading {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0;
}

.main-heading span {
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: block;
    font-weight: 400;
}

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mascot-img {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

.mascot-text h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.mascot-text p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Intro Section */
.intro-section {
    background-color: white;
    margin-top: 10px;
    padding-top: 40px;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.slogan-text {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.history-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background-color: #a01129;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.register-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Registration Form */
.registration-section {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    padding-top: 40px;
}

.registration-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control, .form-select {
    height: 45px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.25);
}

.create-account-btn {
    background-color: var(--danger-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.create-account-btn:hover {
    background-color: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.terms-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Benefits Sidebar */
.benefits-sidebar {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.sidebar-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.benefits-list {
    padding-left: 20px;
}

.benefits-list li {
    margin-bottom: 20px;
}

.benefits-list p {
    margin-bottom: 0;
}

.free-tag {
    color: var(--danger-color);
    font-weight: 700;
}

/* Income Section */
.income-section {
    background-color: #f8f9fa;
    margin-top: 40px;
    padding-top: 40px;
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto 30px;
}

.commission-banner {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.commission-banner h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.commission-percent {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.commission-percent span {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
}

.optional-services {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.services-list {
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 30px;
}

.services-list p {
    text-align: justify;
}

/* Magic Door Section */
.magic-door-section {
    background: linear-gradient(120deg,rgb(186, 208, 229) 70%, #ffe6ea 100%) !important;
    color: var(--primary-color) !important;
    padding: 60px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-top: 40px;
}

.magic-door-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.magic-door-subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--gray-700) !important;
}

.property-count {
    font-size: 0.95rem;
    margin-bottom: 7px;
    color: var(--gray-700) !important;
}

.biggest-engine-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 18px 0;
    text-transform: uppercase;
    color: var(--primary-color) !important;
}

.dream-home {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--gray-700) !important;
}

.search-cta {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 10px;
    color:rgb(51, 21, 21) !important;
}

/* --- Section Separation Enhancements --- */
.intro-section,
.registration-section,
.income-section,
.magic-door-section,
.optional-services {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    border: none;
}

.intro-section { border-top: none; }
.optional-services { border-bottom: none; }

.magic-door-section {
    background: linear-gradient(135deg, #0f4c81, #c31432);
    color: #fff;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.income-section {
    background: #f8f9fa;
    border: none;
    border-radius: 0;
}

/* Optional Extras Section Styles */
.optional-extras-card {
    background: linear-gradient(135deg, #fff 60%, #f8f9fa 100%);
    border-radius: 18px;
}

.optional-extras-section .section-title {
    color: #000 !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.extras-list-modern li {
    border-left: 4px solid #a80000;
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1rem 1.1rem 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(168,0,0,0.04);
    transition: box-shadow 0.2s;
}

.extras-list-modern li:hover {
    box-shadow: 0 4px 16px rgba(168,0,0,0.10);
}

.extras-list-modern .display-5 {
    font-size: 2rem;
    min-width: 2.5rem;
    line-height: 1.1;
}

/* Modern Benefits Sidebar Styles */
.modern-benefits-sidebar {
    max-width: 100%;
    width: 100%;
    background: linear-gradient(135deg, #fff 60%, #f8f9fa 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(168,0,0,0.06);
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.benefits-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.benefits-list-modern li {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(168,0,0,0.04);
    padding: 0.4rem 0.4rem 0.4rem 0.6rem;
    text-align: justify;
    gap: 0.2rem;
    margin-bottom: 0;
}

.benefit-icon {
    color: #a80000;
    font-size: 1.1rem;
    min-width: 1.1rem;
    margin-top: 0.1rem;
}

.benefit-text {
    flex: 1 1 0%;
    font-size: 0.98rem;
    color: #222;
    text-align: justify;
}

/* Password Toggle Button */
.toggle-password {
    cursor: pointer;
}

/* Password Strength Indicator */
.progress-bar {
    transition: width 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .main-heading span {
        font-size: 1.2rem;
    }
    
    .slogan-text {
        font-size: 1.5rem;
    }
    
    .mascot-container {
        justify-content: center;
        margin-top: 20px;
    }
    
    .benefits-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .main-heading {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .mascot-container {
        margin-top: 20px;
    }
    
    .create-account-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    .optional-extras-card {
        padding: 0.5rem;
    }
    
    .optional-extras-section .section-title {
        font-size: 1.1rem;
    }
    
    .extras-list-modern li {
        padding: 0.8rem 0.5rem 0.8rem 1rem;
        font-size: 0.98rem;
    }
    
    .extras-list-modern .display-5 {
        font-size: 1.3rem;
        min-width: 1.6rem;
    }
}

@media (max-width: 576px) {
    .main-heading {
        font-size: 1.5rem;
    }
    
    .main-heading span {
        font-size: 1rem;
    }
    
    .slogan-text, .section-title {
        font-size: 1.3rem;
    }
    
    .intro-text, .register-text {
        font-size: 1rem;
    }
    
    .registration-form {
        padding: 20px 15px;
    }
}

@media (max-width: 991.98px) {
    .modern-benefits-sidebar {
        padding: 0.4rem 0.1rem;
    }
    
    .benefits-list-modern li {
        padding: 0.3rem 0.1rem 0.3rem 0.3rem;
        font-size: 0.95rem;
    }
    
    .benefit-icon {
        font-size: 1rem;
        min-width: 1rem;
    }
}

@media (max-width: 575.98px) {
    .modern-benefits-sidebar {
        padding: 0.2rem 0.05rem;
    }
    
    .benefits-list-modern li {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.2rem 0.05rem 0.2rem 0.2rem;
    }
    
    .benefit-icon {
        font-size: 0.9rem;
        min-width: 0.9rem;
    }
}

/* === Brand & Theme Harmonisation === */
:root {
  --brand-red: #B91C43;
  --brand-red-rgb: 185, 28, 67;
  --primary-color: var(--brand-red);
  --danger-color: var(--brand-red);
}

/* Buttons & links */
.history-btn {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  font-weight: 600;
}
.history-btn:hover { background:#a1183a; border-color:#a1183a; color:#fff; }
.btn-danger { background: var(--brand-red); border-color: var(--brand-red); color:#fff; }
.btn-danger:hover { background:#a1183a; border-color:#a1183a; color:#fff; }

/* Form focus rings in brand red */
.form-control:focus, .form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 .2rem rgba(var(--brand-red-rgb), .25);
}

/* Password toggle tidy */
.input-group .form-control { border-right: 0; }
.input-group .btn-outline-secondary { background:#fff; color:#6b7280; border-color:#dee2e6; border-left:0; }
.input-group .btn-outline-secondary:hover { background:#f8f9fa; color:#111; }

/* Terms inline (no box) + CTA spacing */
.terms-section .agree-inline { margin: .5rem auto .25rem; }
.terms-section .form-check-input { margin: 0; }
.terms-section .terms-link { text-decoration: underline; }
.create-account-btn { margin-top:.65rem; margin-bottom: 2.25rem; box-shadow: 0 6px 14px rgba(var(--brand-red-rgb), .18); }

/* Remove tacky FREE badges if any remain */
.free-tag { display: none !important; }

/* Tighten vertical gap before Optional Extras and Magic Door, keep breathing room */
.registration-section.py-5 { padding-bottom: 2rem; }
.optional-extras-section.py-5 { padding-top: 2rem; }

/* Hero heading/subtitles sizing a touch smaller */
.main-heading { color: var(--brand-red); }
.slogan-text { color: var(--brand-red); }

/* Benefits card polish */
.modern-benefits-sidebar { box-shadow: 0 2px 12px rgba(185, 28, 67, 0.06); }
.benefit-icon { color: var(--brand-red); }

/* Force Facebook button blue */
.btn-facebook {
  background-color: #4267B2 !important; /* Facebook blue */
  border-color: #4267B2 !important;
  color: #fff !important;
}

.btn-facebook:hover,
.btn-facebook:focus {
  background-color: #365899 !important; /* darker on hover */
  border-color: #365899 !important;
  color: #fff !important;
}


:root { --brand-red: #B91C43; }

.register-title{
  color: var(--brand-red);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .2px;

  /* full-width underline in brand red */
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* kill the old short after-bar if it exists */
.register-title::after{ content: none !important; }

/* Highlight link for pricing plans */
a.pricing-link {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

a.pricing-link:hover {
  color: #a1183a; /* slightly darker red on hover */
  text-decoration-color: #a1183a;
}



