/* ==========================================================================
   REGISTRATION PAGE STYLES (JEHÒ Dance Group)
   ========================================================================== */
/* ==========================================================================
   JEHÒ DANCE GROUP - PREMIUM FIXED NAVBAR
   ========================================================================== */

/* Navbar e fiksuar në krye të faqes */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(6, 2, 9, 0.95); /* Ngjyrë e errët e ngjashme me foton */
    backdrop-filter: blur(10px); /* Efekt xhami i turbullt në sfond */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999; /* Siguron që navbar të qëndrojë gjithmonë mbi elementet e tjera */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Kontejneri që mban elementet të rreshtuara dhe të kufizuara në gjerësi max */
.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* --- LOGO STYLING --- */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    height: 45px; /* Rregulloje sipas madhësisë së logos tënde */
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: #d1c7d4;
    letter-spacing: 3px;
    margin-top: 4px;
    font-weight: 600;
}

/* --- MENUJA (QENDËR) --- */
.nav-menu {
    display: flex;
    gap: 30px; /* Hapësira midis linkeve */
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

/* Efekti kur kalon miun (Hover) */
.nav-menu a:hover {
    color: #db244f; /* Ngjyra e kuqe/rozë si në foto */
}

/* Linku Aktiv (p.sh. REGISTER) */
.nav-menu a.active {
    color: #db244f;
    border-bottom: 2px solid #db244f;
}

/* --- AKSIONET DHE BUTONAT (DJATHTAS) --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Ikonat Sociale */
.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #db244f;
    transform: scale(1.15);
}

/* Butoni JOIN US me Gradient */
.btn-join {
    text-decoration: none;
    background: linear-gradient(135deg, #e63917 0%, #a81c3c 50%, #681875 100%);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 57, 23, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 23, 0.4);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 20px;
    }
    .nav-menu {
        gap: 15px;
    }
    .nav-actions {
        gap: 15px;
    }
}
/* Main Page Wrapper & Dynamic Gradient Background */
.registration-page-wrapper {
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 0% 100%, #3e102f 0%, #150517 50%, #0c0211 100%),
                radial-gradient(circle at 100% 0%, #a81c3c 0%, #150517 70%);
    background-blend-mode: screen;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Master Layout Container */
.registration-container {
    display: grid;
    /* Ndryshuar nga 35% 65% në 28% 72% për të zgjeruar anën e djathtë */
    grid-template-columns: 28% 72%; 
    width: 100%;
    max-width: 1400px; /* E rrisim pak maksimumin global që forma të shtrihet më mirë */
    background: rgba(15, 4, 20, 0.6);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding-top: 65px; /* I jep hapësirë që të mos mbulohet nga navbar */
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: BRANDING & INFO SIDEBAR
   -------------------------------------------------------------------------- */
.info-sidebar {
    position: relative;
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(12, 2, 17, 0.4) 0%, rgba(168, 28, 60, 0.2) 100%);
}

/* Background image styling for the left side panel */
.sidebar-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('media/registerimage.jpg'); /* Replace with your local image filename */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Soft blend into the background */
    z-index: 1;
    pointer-events: none;
}

.sidebar-content {
    position: relative;
    z-index: 2;
}

.info-sidebar .sub-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #a81c3c;
    font-weight: 700;
    text-transform: uppercase;
}

.info-sidebar h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.2;
}

.info-sidebar h1 .highlight {
    color: #a81c3c;
}

.info-sidebar .divider {
    width: 40px;
    height: 3px;
    background-color: #a81c3c;
    margin: 20px 0;
}

.info-sidebar .intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1c7d4;
    margin-bottom: 40px;
}

/* Feature Bullet Points Layout */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .icon {
    font-size: 1.4rem;
    color: #a81c3c;
    margin-top: 3px;
    width: 25px;
    text-align: center;
}

.feature-list h3 {
    font-size: 1.05rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.feature-list p {
    font-size: 0.85rem;
    color: #b3a7b8;
    margin: 0;
}
/* --- STILIZIMI I FOTOS NË SIDEBAR --- */

/* --- FOTOJA SI SFOND I PLOTË NË SHTYLLËN E MAJTË --- */

.info-sidebar {
    position: relative;
    /* Vendos foton si sfond të përgjithshëm të kolonës */
    background: linear-gradient(rgba(15, 2, 10, 0.45), rgba(15, 2, 10, 0.9)), 
                url('media/registerimage.jpg') center center / cover no-repeat;
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ndihmon në rreshtimin e elementeve nga lart-poshtë */
    overflow: hidden;
}

/* Fshije ose bëje "display: none" div-in bosh që të mos krijojë hapësirë të tepërt sipër */
.sidebar-bg-image {
    display: none; 
}

/* --- STILIZIMI I TEKSTIT SIPËR FOTOS --- */

.sidebar-content {
    z-index: 2; /* Siguron që teksti të dalë mbi foton e sfondit */
}

.sub-title {
    color: #ff416c;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.info-sidebar h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 15px;
}

.info-sidebar h1 .highlight {
    background: linear-gradient(to right, #ff416c, #e52d27);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #ff416c, #e52d27);
    margin-bottom: 25px;
}

.intro-text {
    color: #cdc1c7;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- LISTA E TIPAREVE (FEATURE LIST) --- */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-list li .icon {
    font-size: 22px;
    color: #ff416c;
    margin-top: 3px;
}

.feature-list li h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.feature-list li p {
    color: #bfa3b1;
    font-size: 14px;
    line-height: 1.4;
}
/* --------------------------------------------------------------------------
   RIGHT COLUMN: REGISTRATION FORM CANVAS
   -------------------------------------------------------------------------- */
.form-container {
    background-color: #fcf8f9;
    padding: 40px;
    border-radius: 24px;
    margin: 15px;
    color: #2b1116;
}

/* Top Form Header Alert Bar */
.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    border-left: 5px solid #a81c3c;
    box-shadow: 0 4px 15px rgba(168, 28, 60, 0.05);
}

.header-icon {
    background-color: #a81c3c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
}
.form-title {
    text-align: center;      
    margin-bottom: 30px;     
    font-size: 23px;         
}
.form-header h2 {
    font-size: 1 rem;
    margin: 0;
    color: #40101d;
}

.form-header p {
    font-size: 0.85rem;
    margin: 3px 0 0 0;
    color: #706064;
}

.required {
    color: #a81c3c;
    font-weight: bold;
}

/* Grid layout for the input cards */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

/* Unified Panel/Card Design for sections */
.form-card {
    background: #ffffff;
    border: 1px solid #f0e4e6;
    border-radius: 16px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(168, 28, 60, 0.02);
}

/* Resetting default fieldset headers */
legend, .form-card legend {
    font-size: 1rem;
    font-weight: 700;
    color: #a81c3c;
    padding: 0 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    float: left;
    width: 100%;
}

/* Input Fields styling */
.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label, .form-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a3b3e;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="date"],
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcd0d2;
    border-radius: 8px;
    background-color: #faf6f7;
    font-size: 0.9rem;
    color: #2b1116;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus, 
.form-card select:focus, 
.form-card textarea:focus {
    border-color: #a81c3c;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(168, 28, 60, 0.15);
}

.input-group input:disabled {
    background-color: #ece4e5;
    color: #9c8e91;
    cursor: not-allowed;
}

/* Custom Textareas */
textarea {
    min-height: 80px;
    resize: vertical;
}

/* Layout for Row-based Radios & Checkboxes */
.radio-group, .radio-group-row, .checkbox-grid, .radio-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

.radio-group-row {
    flex-direction: row;
}

.radio-group {
    flex-direction: row;
}

.radio-stack {
    flex-direction: column;
    gap: 10px;
}

/* Alignment rules inside cards */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.availability-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.time-preference {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid #eee4e5;
    padding-left: 15px;
}

/* Triple Card Cluster Arrangement at the Bottom */
.bottom-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sub-card {
    padding: 15px;
}

.sub-card legend {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
}

/* Submit Action Button Block */
.form-submit-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-register {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #db244f 0%, #681875 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(219, 36, 79, 0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.secure-text {
    font-size: 0.8rem;
    color: #706064;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive UI adjustments for portable screens */
@media (max-width: 1024px) {
    .registration-container {
        grid-template-columns: 1fr;
    }
    .info-sidebar {
        padding: 30px;
    }
    .bottom-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .input-row, .availability-layout {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 15px;
    }
}

/* ==========================================================================
   FIX FOR MISALIGNED / DISTORTED FORM FIELDS
   ========================================================================== */

/* Inner container for card content to force layout */
.form-card-inner {
    width: 100%;
    margin-bottom: 20px;
}

.form-card-inner:last-child {
    margin-bottom: 0;
}

/* 2-Column Grid for Input Groups inside cards */
.form-grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exactly two equal columns */
    gap: 20px; /* Space between columns */
    align-items: end; /* Align items to the bottom if labels are long */
}

/* 3-Column Grid for bottom cards (optional optimization) */
.form-grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Child-specific fixes */
.gender-group {
    grid-column: span 1; /* Keep gender on one column */
}

/* Make sure inputs and labels are properly block-level */
.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a3b3e;
    line-height: 1.3;
}

/* Override any bad previous styles and ensure standard full width */
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="date"] {
    width: 100% !important; /* Force standard width */
    height: 42px; /* Standardize height */
    box-sizing: border-box; /* Maintain correct padding */
    padding: 0 14px !important;
}

/* Fix for the Age calculated field to not look like an empty field on some browsers */
.input-group input:disabled {
    color: #9c8e91;
    background-color: #ece4e5;
}

/* Ensure the Legend title isn't distorted */
.form-card legend {
    font-size: 1rem;
    color: #a81c3c;
    margin-bottom: 15px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    float: left; /* Needed to get legend positioning on some browsers */
    width: auto;
}

/* Clean up input labels */
.input-group label span.required {
    color: #a81c3c;
    font-weight: bold;
}

/* RESPONSIVE: Stack columns on smaller screens */
@media (max-width: 768px) {
    .form-grid-2-col, .form-grid-3-col {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   FIX FOR AVAILABILITY & BOTTOM THREE CARDS
   ========================================================================== */

/* Pjesa Availability */
.availability-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Ndan ditët dhe preferencën e kohës */
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolona për ditët */
    gap: 12px;
}

.checkbox-grid label, .radio-stack label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a3b3e;
    cursor: pointer;
}

.time-preference {
    border-left: 1px solid #eee4e5;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-preference .section-title {
    font-weight: 700;
    color: #4a3b3e;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rregullimi i 3 Kartave të Poshtme */
.bottom-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolona fikse krahas njëra-tjetrës */
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.sub-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f0e4e6;
    border-radius: 16px;
    padding: 20px !important;
    box-sizing: border-box;
}

/* Titujt e 3 kartave të vogla */
.sub-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a81c3c;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sub-card-content label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a3b3e;
    margin-top: 5px;
}

/* Input-et brenda kartave të poshtme */
.sub-card-content select,
.sub-card-content input[type="text"] {
    width: 100% !important;
    height: 40px;
    box-sizing: border-box;
    padding: 0 10px !important;
}

.checkbox-label {
    display: flex;
    align-items: flex-start !important;
    gap: 10px;
    font-size: 0.85rem !important;
    line-height: 1.5;
    color: #4a3b3e;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 4px;
}

/* Responsive për ekrane më të vogla */
@media (max-width: 1024px) {
    .bottom-cards-grid {
        grid-template-columns: 1fr; /* Bëhen njëra mbi tjetrën në tablet/mobile */
    }
    .availability-layout {
        grid-template-columns: 1fr;
    }
    .time-preference {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee4e5;
        padding-top: 15px;
    }
}