/* Styles pour le formulaire d'adresse */
.openscop-address-container {
    margin-bottom: 20px;
}

/* Styles pour la recherche d'adresse */
.openscop-address-search {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.openscop-address-search label {
    margin-bottom: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0;
}

.openscop-address-search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.openscop-address-search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.openscop-address-results {
    position: absolute;
    top: calc(100% - 15px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.openscop-address-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.openscop-address-result-item:hover {
    background-color: #f5f5f5;
}

.openscop-address-result-item:last-child {
    border-bottom: none;
}

.openscop-address-display {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.openscop-btn {
    cursor: pointer;
}

/* Styles pour la modale */
.openscop-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.openscop-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.openscop-modal-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.openscop-modal-header h2 {
    margin: 0;
}

.openscop-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.openscop-close:hover,
.openscop-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.openscop-modal-body {
    padding: 15px;
}

.openscop-modal-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* Styles pour la carte */
#openscop-map {
    height: 400px;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

.openscop-map-instructions {
    margin-top: 10px;
}

.openscop-coordinates-info {
    display: flex;
    justify-content: start;
    gap: 20px;
}

.openscop-coordinates-info p {
    margin: 5px 0;
}



/* CORRECTIF AFFICHAGE SELECT */
body[data-fancy-form-rcs="1"] .fancy-select-wrap{
    position: relative;
    z-index: 999;
}