﻿:root {
    --brand-blue: #004080;
    --brand-gold: #d4af37;
    --navy-dark: #002d5a;
    --bg-light: #f4f7f6;
}

.registry-hero {
    background: radial-gradient(circle at 50% 50%, var(--brand-blue) 0%, var(--navy-dark) 100%);
    padding: 60px 0;
    border-bottom: 5px solid var(--brand-gold);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}

.hero-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.breadcrumb-item a {
    color: var(--brand-gold) !important;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-intro-text {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.registry-main-content {
    margin-top: -30px;
    margin-bottom: 60px;
}

.registry-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Desktop View */
.split-layout {
    display: flex;
    height: 750px; /* Fixed height for desktop only */
}

.form-pane {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    border-right: 1px solid #eee;
}

.map-pane {
    flex: 1.2;
    position: relative;
    min-height: 300px; /* Prevents collapse */
}

#registerMap {
    min-height: 350px; /* Force a minimum height */
    height: 100%;
    width: 100%;
    background-color: #eee; /* Light grey so you know the container is there */
}

/* UI Elements */
.form-section-title {
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-size: 1rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.custom-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.custom-input {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px;
}

.btn-registry-submit {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

    .btn-registry-submit:hover {
        background: var(--navy-dark);
        transform: translateY(-2px);
    }

.ownership-options {
    background: #fcfcfc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.custom-radio .form-check-input:checked {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.map-floating-card {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.9rem;
    border-left: 4px solid var(--brand-blue);
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 991px) {
    .split-layout {
        flex-direction: column;
        height: auto; /* Allow the container to grow with content */
    }

    .map-pane {
        order: 1;
        height: 350px !important; /* Forces the map to have height on mobile */
        width: 100%;
    }

    .form-pane {
        order: 2;
        padding: 20px;
        overflow-y: visible; /* No internal scroll on mobile */
    }

    .registry-main-content {
        margin-top: 10px;
        padding: 0 10px;
    }
}
