.custom-map {
    width: 400px;
    height: 800px;
    max-width: 100%; /* Prevent overflow on small screens */
}
.leaflet-attribution-flag {
    display: none!important;
}

.sw-map-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.sw-map-left {
    width: 60%; /* Map takes 60% of the screen */
    padding: 10px;
}

.sw-map-right {
    width: 40%; /* Organisation details take 40% */
    height: max-content;
    padding: 20px;
    background: #f8f8f8; /* Light background for contrast */
    border-left: 2px solid #ddd;
}

#sw-organisation-details {
    text-align: center;
}

#sw-organisation-details img {
    max-width: 80%;
    height: auto;
    margin-top: 10px;
}
h2.pin-organisation-name{
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}
/* Responsive design: Stack columns for mobile */
@media screen and (max-width: 768px) {
    .sw-map-container {
        flex-direction: column; /* Stack items */
    }

    .sw-map-right {
        width: 100%; /* Full width on mobile */
        border-left: none;
        border-bottom: 2px solid #ddd;
    }

    .sw-map-left {
        width: 100%; /* Full width on mobile */
    }
}

/* Gold Accreditation Button */
.sw-button-container {
    text-align: center;
    margin-top: 15px;
}

.sw-gold-button {
    background-color: #febc62;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sw-gold-button:hover {
    background-color: #e6a84b;
}

/* Modal Styles */
.sw-modal {
    display: none;
    position: fixed;
    z-index: 9999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.sw-modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
    border-radius: 10px;
    text-align: center;
    position: relative;
    z-index: 10000 !important;
}

/* Close button */
.sw-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    z-index: 10001 !important;
}

.sw-modal-close:hover {
    color: #000;
}

/* Responsive Form Grid */
.sw-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ensure two-column layout on desktop */
.form-row {
    display: flex;
    gap: 15px;
}

/* Set equal width for two-column layout */
.half-width {
    width: 50%;
}

/* Force Full-Width Fields for School Address & Email */
.sw-form-grid .form-group:nth-child(5),
.sw-form-grid .form-group:nth-child(6) {
    grid-column: span 2;
}

/* Form Field Styling */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #febc62;
}

/* Checkbox */
.sw-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 10px 0;
}

.sw-checkbox input {
    margin-right: 10px;
}

/* Submit Button */
.sw-submit-button {
    background: #febc62;
    color: black;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.sw-submit-button:hover {
    background: #e6a84b;
}

/* Force Single-Column Layout on Mobile */
@media screen and (max-width: 600px) {
    .sw-form-grid {
        grid-template-columns: 1fr !important; /* Force all fields to be in a single column */
    }

    .sw-form-grid .form-group {
        grid-column: span 1 !important; /* Ensure no field spans multiple columns */
    }
}

/* Responsive: Make all fields full width on small screens */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .half-width {
        width: 100%;
    }
}

/* Force Leaflet Controls Below the Modal */
.leaflet-control-container {
    z-index: 1 !important; /* Pushes Leaflet zoom controls below everything */
}

/* Ensure the Map Itself Doesn't Interfere */
.leaflet-container {
    position: relative !important;
    z-index: 0 !important;
}