/* Request Form Modal */
.request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
}

.request-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.request-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.request-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0fceb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 15px 15px 0 0;
}

.request-modal-header h2 {
    color: #2d5016;
    font-size: 24px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: #5a7a45;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ff6b35;
}

.request-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.request-form-group {
    margin-bottom: 20px;
}

.request-form-group label {
    display: block;
    color: #2d5016;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.request-form-group label.required::after {
    content: " *";
    color: #ff6b35;
}

.request-form-group input,
.request-form-group select,
.request-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d4e8d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    background-color: #fafffe;
}

.request-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.request-form-group input:focus,
.request-form-group select:focus,
.request-form-group textarea:focus {
    outline: none;
    border-color: #5a7a45;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(90, 122, 69, 0.1);
}

.request-form-group input:disabled,
.request-form-group select:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.request-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.conditional-field {
    display: none;
}

.conditional-field.show {
    display: block;
}

.map-picker {
    margin-top: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f0fceb 0%, #d4e8d0 100%);
    border: 2px dashed #5a7a45;
    border-radius: 8px;
    text-align: center;
    color: #2d5016;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.map-picker:hover {
    background: linear-gradient(135deg, #d4e8d0 0%, #c0dbb7 100%);
    border-color: #2d5016;
    transform: translateY(-2px);
}

.map-picker-container {
    margin-top: 15px;
    padding: 15px;
    background: #fafffe;
    border: 1px solid #d4e8d0;
    border-radius: 8px;
}

.btn-confirm-location {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm-location:hover {
    background: #5a7a45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.request-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0fceb;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    justify-content: center !important;
    align-items: center !important;
    background: white;
    border-radius: 0 0 15px 15px;
    width: 100%;
    text-align: center;
}

.btn-submit-request,
.btn-cancel-request {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    flex-shrink: 0;
}

.btn-submit-request {
    background: linear-gradient(135deg, #5a7a45 0%, #2d5016 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.btn-submit-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.btn-cancel-request {
    background: white;
    color: #5a7a45;
    border: 2px solid #d4e8d0;
}

.btn-cancel-request:hover {
    background: #f0fceb;
    border-color: #5a7a45;
}

/* Responsive */
@media (max-width: 768px) {
    .request-form-row {
        grid-template-columns: 1fr;
    }
    
    .request-modal-content {
        margin: 10px;
    }
}

/* Google Places Autocomplete dropdown - must be above modal z-index (9999) */
.pac-container {
    z-index: 99999 !important;
}
