@charset "ISO-8859-1";

/* BODY */
body {
    margin: 0;
    padding: 0;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    color: #4169E1;
    overflow-x: hidden;
}

/* HERO SECTION (Main Layout) */
.hero-section {
    display: flex;
    justify-content: flex-end; /* pushes form to right */
    align-items: center;       /* vertical center */
    min-height: 100vh;         /* full screen height */
    padding-right: 10px;       /* space from right edge */
}

/* LEFT SIDE TEXT */
.left-content {
    color: #ffffff;
    max-width: 500px;
}

.left-content h1 {
    font-size: 42px;
    font-weight: 700;
}

.left-content p {
    font-size: 18px;
    margin-top: 15px;
}

/* RIGHT SIDE FORM CONTAINER */
.form-container {
    width: 480px;
}

/* REGISTRATION MODAL (Glass Effect) */
.registration-modal {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

/* SECTION TITLE */
.section-title {
    font-weight: 600;
    border-bottom: 2px solid #FFC40C;
    margin-bottom: 20px;
    padding-bottom: 6px;
}

/* BUTTONS */
.gender-btn button,
button.btn-secondary {
    border-radius: 20px;
    padding: 6px 20px;
    background-color: #9A9AEB;
    color: #FFC40C;
    border: none;
}

button.btn-secondary:hover {
    background-color: #8A8ADB;
}

/* INPUT STYLING */
input, select, textarea {
    font-family: Verdana, sans-serif;
    font-size: 11px;
    color: #000;
}

input::placeholder, textarea::placeholder {
    font-size: 12px;
    color: #555;
}

input[type="date"] {
    font-size: 12px;
    color: #4169E1;
}

/* Background Image Slider */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: background-image 1s ease-in-out;
}

/* Dark Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.25);
    z-index: -1;
    pointer-events: none;   /* ⭐ THIS FIXES EVERYTHING */
}
.form-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Terms & Conditions modal: fit in viewport, readable, buttons always visible and clickable */
#termsModal.modal {
    padding: 0.5rem;
}

#termsModal.modal.show {
    z-index: 1060 !important;
    pointer-events: auto;
}

/* Dialog: strict max-height so it never goes off-screen; ensure it receives clicks */
#termsModal .terms-modal-dialog {
    margin: auto;
    max-height: min(calc(100vh - 1rem), 90vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto !important;
}

#termsModal .modal-content {
    width: 100%;
    max-height: min(calc(100vh - 1rem), 90vh);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #212529;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

#termsModal .modal-header {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

#termsModal .modal-title {
    color: #212529;
    font-weight: 600;
}

#termsModal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.25rem;
    background: #fff;
    color: #212529;
}

#termsModal .modal-body h6,
#termsModal .modal-body p,
#termsModal .modal-body li {
    color: #212529;
}

#termsModal .modal-footer {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    pointer-events: auto !important;
}

#termsModal .modal-footer button,
#termsModal .modal-header .btn-close {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Darker backdrop when modal is open so page behind is clearly dimmed */
body.modal-open .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.floating-search-btn{
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 15px 22px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

.floating-search-btn:hover{
    background-color: #bb2d3b;
    transform: scale(1.05);
}

.search-modal-right {
    position: fixed;
    right: 0;
    top: 70px;
    margin: 0;
    width: 40%;
    max-width: 70%;
}

.search-modal-right .modal-content {
    border-radius: 10px;
}

.image-box {
    width: 100%;
    height: 250px;         /* fixed height */
    overflow: hidden;
    border-radius: 10px;
}

.profile-img {
    width: 100%;
    height: 100%;

    object-fit: cover;          /* fills box */
    object-position: center;    /* 👈 IMPORTANT (fix for your issue) */
}

.profile-square {
    width: 220px;          /* adjust size */
    height: 220px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;   /* small curve like modern UI */
    border: 3px solid #343a40;
    background: #f8f9fa;
    object-position: top right; 
}


.profile-img-reveal {
width: 100%;
    height: 100%;
    object-fit: cover;          
    object-position: top center; 
}

.profile-box {
    width: 260px;              /* square size */
    height: 260px;
    margin: auto;
    border-radius: 16px;       /* rounded square like screenshot */
    overflow: hidden;
    border: 4px solid #343a40;
    background: #eee;

    display: flex;
    align-items: center;
    justify-content: center;
}