:root {
    --primary-color: #FF5A5F;
    /* Airbnb-ish red/pink, adjusting to RoomStay brand if known, using a vibrant coral for now */
    --text-color: #222222;
    --text-light: #717171;
    --bg-color: #FFFFFF;
    --border-color: #DDDDDD;
    --hover-bg: #F7F7F7;
    --font-family: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    /* Adjust based on design width */
}

/* Header */
.main-header {
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-text {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.btn {
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #FFF0F0;
}

/* Hero Search */
.hero-search {
    padding: 40px 0;
    text-align: center;
}

.hero-search h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 32px;
}

.search-bar {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex: 1;
}

.search-input-group i {
    color: var(--primary-color);
    /* Or dark blue based on screenshot */
    margin-right: 12px;
    font-size: 18px;
}

.search-input-group.location i {
    color: #333;
    /* Adjusting to match design better if needed */
}

.search-input-group input {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    width: 100%;
    background: transparent;
    cursor: default;
}

.divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
}

/* Filters */
.filters-section {
    padding-bottom: 24px;
}

.filters-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    min-width: 60px;
}

.filter-btn i {
    font-size: 20px;
    color: var(--text-light);
}

.filter-btn span {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover i,
.filter-btn:hover span {
    color: var(--text-color);
}

.btn-outline {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 20px;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 16px;
    padding: 8px 0;
}

.mobile-menu .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.mobile-menu .btn {
    width: 100%;
    text-align: center;
}

/* Main Content Grid */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    /* Adjust map width */
    gap: 24px;
    padding-bottom: 60px;
}

.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Property Card */
.property-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    /* border: 1px solid var(--border-color); */
    /* Minimalist usually no border, just spacing */
    transition: transform 0.2s;
}

.property-card:hover {
    /* transform: translateY(-2px); */
}

.card-image {
    position: relative;
    height: 220px;
    background-color: #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #2F3B55;
    /* Dark blue from screenshot */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.price-tags-container {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.price-tags-container .price-tag {
    position: static;
    margin: 0;
}

.price-tag.flexible {
    background-color: #10B981;
}

.card-content {
    padding: 16px 0;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amenities {
    display: flex;
    gap: 16px;
    color: var(--text-light);
    font-size: 14px;
}

.amenities span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-per-week {
    font-size: 14px;
    color: var(--text-light);
}

/* Map */
.map-container {
    position: relative;
}

.sticky-map {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-pin {
    position: absolute;
    color: var(--primary-color);
    /* Or blue */
    font-size: 24px;
    transform: translate(-50%, -100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        display: none;
        /* Hide map on smaller screens for now or move to bottom */
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-content > .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 0 20px;
    }

    .hero-search h1 {
        font-size: 24px;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 12px;
        align-items: stretch;
    }

    .divider {
        display: none;
    }

    .search-input-group {
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .search-input-group:last-child {
        border-bottom: none;
    }
}

/* Property Details Page Styles */
.details-page {
    padding-bottom: 80px;
}

.back-nav {
    padding: 24px 0;
}

.back-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-nav a:hover {
    color: var(--text-color);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: 400px;
    margin-bottom: 40px;
    overflow: hidden;
}

.gallery-main {
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-side img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

/* Details Content Grid */
.details-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
}

/* Left Column */
.title-section {
    margin-bottom: 32px;
}

.title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.title-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.mobile-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

.description-section {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 32px;
}

.show-more {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 500;
    font-size: 14px;
}

.divider-line {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

.highlights-section h3,
.neighbourhood-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 14px;
}

.highlight-item i {
    font-size: 20px;
    color: var(--text-light);
    width: 24px;
    text-align: center;
}

/* Booking Sidebar */
.booking-sidebar {
    position: relative;
}

.booking-card {
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    background: white;
}

.booking-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.booking-row:last-child {
    margin-bottom: 0;
}

.booking-row .label {
    color: var(--text-color);
}

.booking-row .value {
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
}

.btn-black {
    width: 100%;
    background-color: black;
    color: white;
    padding: 14px;
    border-radius: 30px;
    /* Pill shape */
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 24px;
    margin-bottom: 12px;
}

.btn-black:hover {
    opacity: 0.9;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

@media (max-width: 1024px) {
    .details-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .image-gallery {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-side {
        display: none;
        /* Hide side images on mobile for simplicity */
    }

    .gallery-main {
        height: 250px;
    }
}

/* Signup Page Styles */
.signup-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.signup-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #F9FAFB;
    /* Light gray background */
}

.signup-container {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.signup-illustration {
    margin-bottom: 24px;
}

.signup-container h1 {
    font-size: 24px;
    font-weight: 600;
    /* Semi-bold as per design */
    color: #1e1b4b;
    /* Dark blue/indigo */
    margin-bottom: 32px;
    font-family: serif;
    /* Trying to match the serif font in screenshot if possible, or just use sans */
    font-family: 'Inter', sans-serif;
    /* Stick to Inter for consistency unless requested otherwise */
}

.signup-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-btn:hover {
    background-color: var(--hover-bg);
}

.social-btn i {
    font-size: 18px;
}

.casapay-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* CasaPay Signup Flow Styles */
.casapay-signup-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: rgba(0, 0, 0, 0.05);
    /* Slight overlay background */
    font-family: 'Inter', sans-serif;
}

/* Embedded mode (inside iframe) - transparent background so parent backdrop shows through */
.casapay-signup-body.embedded {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
    align-items: center;
}

.casapay-sticky-logo {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 0;
    margin: -40px -40px 24px -40px;
    padding-left: 40px;
    padding-right: 40px;
    border-bottom: 1px solid #f0f0f0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
}

.casapay-sticky-logo img {
    height: 24px;
    width: auto;
}

.casapay-modal {
    background: white;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
}

.modal-close a {
    color: #222;
    font-size: 20px;
    text-decoration: none;
}

.casapay-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 16px;
}

.casapay-header .header-logo {
    height: 32px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.casapay-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.casapay-brand {
    background-color: #FFB3C1;
    /* Light pink background for brand */
    padding: 2px 8px;
    border-radius: 8px;
    color: #000;
}

.casapay-header .subtitle {
    color: #666;
    font-size: 15px;
    line-height: 1.4;
}

.phone-input-container {
    margin-bottom: 32px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #000;
}

.phone-input-wrapper i {
    font-size: 20px;
    color: #666;
    margin-right: 16px;
}

.input-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-field label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.input-field input {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    width: 100%;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.benefit-list li i {
    margin-top: 2px;
    color: #333;
}

.btn-continue {
    width: 100%;
    background-color: #0A0A0A;
    /* Dark almost black */
    color: white;
    padding: 16px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
}

.casapay-footer {
    text-align: center;
}

/* Payment selection */
.payment-switcher {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.payment-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    background: #f3f4f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.payment-tab.active {
    background: #111827;
    color: #fff;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-option-card {
    display: block;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    cursor: pointer;
}

.payment-option-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.payment-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.payment-subtitle.positive {
    color: #059669;
}

.payment-badges {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.badge {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #f3f4f6;
}

.badge.pill {
    margin-left: auto;
}

.payment-radio input[type="radio"] {
    width: 18px;
    height: 18px;
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: #9ca3af;
    font-size: 12px;
}

.payment-divider::before,
.payment-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.payment-amount {
    font-weight: 600;
}

.payment-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
}

.meta-label {
    color: #6b7280;
}

.meta-value {
    font-weight: 500;
}

.meta-value.positive {
    color: #059669;
}

.meta-total {
    margin-left: auto;
    text-align: right;
}

.helper-text {
    font-size: 12px;
    color: #666;
}

.payment-details {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: #4b5563;
}

.payment-option-card.expanded .payment-details {
    display: block;
}

.payment-details ul {
    margin: 4px 0 0;
    padding-left: 16px;
}

.stay-signed-in {
    margin-bottom: 8px;
}

.highlight {
    color: #6D28D9;
    /* Purple highlight */
    font-weight: 600;
}

.legal-text a {
    color: #666;
    text-decoration: underline;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-nav a {
    color: #222;
    font-size: 20px;
    text-decoration: none;
}

.pin-header {
    text-align: left;
}

.pin-header h1 {
    margin-top: 16px;
}

.brand-pill {
    display: inline-block;
    background-color: #FFB3C1;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 16px;
    /* Center the pill relative to the modal if needed, but design shows it centered or left?
       Screenshot shows centered brand, left aligned text. Let's adjust header. */
    /* Actually screenshot shows centered brand "CasaPay" pill, then left aligned text below. */
    /* Let's make the brand pill centered in the header container, but the h1 left aligned. */
}

.pin-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pin-header .brand-pill {
    align-self: center;
}

.change-link {
    color: #6D28D9;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.success-message {
    background-color: #D1FAE5;
    /* Light green */
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.success-message i {
    color: #065F46;
    /* Dark green */
    font-size: 20px;
    margin-top: 2px;
}

.message-content strong {
    display: block;
    color: #065F46;
    font-size: 14px;
    margin-bottom: 4px;
}

.message-content p {
    color: #065F46;
    font-size: 14px;
    margin: 0;
}

.pin-footer {
    margin-top: 180px;
    /* Push to bottom */
}

.resend-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.details-form {
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.form-group {
    padding: 12px 16px;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.info-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.billing-address-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.change-address {
    color: #6D28D9;
    text-decoration: none;
    font-weight: 600;
}

.address-details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* KYC Steps */
.kyc-steps {
    list-style: none;
    padding: 0;
    margin-top: 32px;
    margin-bottom: 40px;
}

.kyc-steps li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.step-marker {
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    z-index: 1;
}

.kyc-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    bottom: -20px;
    width: 2px;
    background-color: #eee;
}

.step-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-content {
    text-align: center;
}

.logo-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

.logo-loader img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.loader-content p {
    font-size: 18px;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.identity-steps .sub-text {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.legal-text-small {
    font-size: 11px;
    color: #666;
    margin-top: auto;
    margin-bottom: 16px;
    line-height: 1.4;
}

.legal-text-small a {
    color: #000;
    text-decoration: underline;
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.document-option:hover {
    background-color: #f9f9f9;
}

.doc-icon {
    width: 24px;
    font-size: 20px;
    color: #000;
    margin-right: 16px;
    text-align: center;
}

.doc-info {
    flex: 1;
}

.doc-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.doc-info span {
    font-size: 12px;
    color: #666;
}

.arrow-icon {
    font-size: 12px;
    color: #666;
}

/* Upload Page */
.upload-illustration {
    background-color: #f0f0f0;
    border-radius: 12px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.phone-mockup {
    font-size: 64px;
    color: #333;
    border: 4px solid #333;
    border-radius: 16px;
    padding: 20px 12px;
    width: 80px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: rotate(-10deg);
    background: white;
}

.upload-info-box {
    background-color: #E0E7FF;
    /* Light indigo/blue */
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 16px;
}

.upload-info-box i {
    color: #4338CA;
    font-size: 16px;
}

.upload-info-box span {
    color: #000;
    font-size: 12px;
    font-weight: 500;
}

/* Desktop camera preview for KYC with this computer */
.desktop-camera-wrapper {
    margin-top: 24px;
    margin-bottom: 24px;
}

.desktop-camera-preview {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.desktop-camera-preview video {
    width: 100%;
    display: block;
}

.camera-frame-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-frame-overlay::before {
    content: "";
    width: 70%;
    aspect-ratio: 1.58;
    border: 2px solid white;
    border-radius: 12px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
}

.selfie-frame-overlay::before {
    content: "";
    width: 40%;
    aspect-ratio: 1;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
}


.desktop-camera-hint {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
}


.upload-actions {
    display: flex;
    gap: 12px;
}

/* Ensure CTAs in upload-actions row are aligned and full-width within their flex items */
.upload-actions .btn-outline,
.upload-actions .btn-black {
    margin: 0;
    width: 100%;
}

.btn-outline {
    flex: 1;
    padding: 14px;
    border: 1px solid #000;
    background: white;
    color: #000;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-outline:hover {
    opacity: 0.9;
}

/* Mobile Flow Styles */
.mobile-flow-body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
}

.mobile-container .casapay-sticky-logo {
    margin: -24px -24px 24px -24px;
    padding: 16px 24px;
}

.mobile-header {
    display: flex;
    justify-content: center;
    padding-bottom: 24px;
}

.mobile-header .header-logo {
    height: 32px;
}

.mobile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #666;
    font-size: 24px;
}

.connection-status .fa-link {
    font-size: 16px;
    color: #ccc;
}

.mobile-content h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.mobile-content p {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.mobile-action-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    text-align: center;
}

.action-icon {
    width: 64px;
    height: 64px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    color: #4338ca;
    font-size: 24px;
}

.mobile-action-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.mobile-action-card p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Camera Interface */
.camera-body {
    background-color: black;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.camera-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.camera-overlay {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.camera-frame {
    width: 80%;
    aspect-ratio: 1.58;
    /* Credit card ratio */
    border: 2px solid white;
    border-radius: 12px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
}

.camera-instruction {
    color: white;
    margin-top: 24px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.camera-controls {
    height: 120px;
    background: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.shutter-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
    cursor: pointer;
}

.camera-btn {
    color: white;
    text-decoration: none;
    font-weight: 500;
    width: 60px;
    text-align: center;
}

/* Success Page */
.success-content {
    justify-content: center;
    padding-top: 0;
}

.success-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 32px;
}

.success-message {
    text-align: center;
}


.success-icon-large {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #065f46;
    font-size: 32px;
    margin-bottom: 24px;
}

.return-instruction {
    margin-top: 40px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    width: 100%;
}
/* Responsive Modal Styles */
@media (max-width: 768px) {
    .casapay-signup-body {
        padding: 0;
        background-color: white;
        align-items: flex-start;
    }

    .casapay-modal {
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 24px;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* Adjust sticky logo for mobile full-screen */
    .casapay-sticky-logo {
        margin: -24px -24px 24px -24px;
        padding: 16px 24px;
        border-radius: 0;
    }

    /* Adjust position of close/nav buttons */
    .modal-close,
    .modal-nav {
        width: 100%;
        margin-bottom: 24px;
        position: relative;
    }

    .modal-close {
         top: auto;
         right: auto;
         text-align: right;
         margin-bottom: 16px;
    }
}
