.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.error-form{
    color: red; 
    padding-left: 20px;
    margin: 0;
}

.spaced-left-line {
    display: block;
    text-align: left;
    margin-left: -2px;

}

.alert {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

#open-map-btn {
    margin-top: 4px;
    margin-bottom: 16px;
    padding: 6px 12px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

#close-map-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Position Leaflet controls*/
.leaflet-bottom.leaflet-left .leaflet-control-zoom {
    margin-bottom: 20px;
    margin-left: 10px;
}

.leaflet-top.leaflet-left .leaflet-control-geocoder {
    margin-top: 16px;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1001 !important;
}

/*Autocomplete styles list */

/* Address field */
#id_address {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: white;
    font-size: 14px;
}


/* Dropdown suggests */
.autocomplete-box {
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

/* Single suggest */
.autocomplete-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

/* Hover */
.autocomplete-suggestion:hover {
    background-color: #007bff;
    color: white;
}

.tip-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.tip-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.9);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
}

#map {
    width: 100%;
    height: calc(100% - 44px);
    position: relative;
    margin-top: 44px;
}

#map-container {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: -740px; /* Initially out of screen */
  width: 700px;
  height: 520px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 10000;
  transition: right 0.4s ease;
}



#map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    padding: 0 12px;
    font-weight: 600;
    font-size: 15px;
    z-index: 1002;
}

#map-header span {
    flex-grow: 1;
    text-align: center;
}


#close-map-btn:hover {
    background-color: #fff;
    color: #d33;
    border: 1px solid #d33;
}

#map-container.open {
  right: calc(50% - 630px);
}

.auth-box.shift-left {
  transform: translateX(-370px); /* shifting more visible */
  transition: transform 0.4s ease;
}

.spacer-after-error {
  margin-bottom: 16px; /* increase or reduce */
}

.return-to-marker-btn {
  background-color: white;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.extra-spacing {
  margin-top: 30px;
}