/* EMDAD Frontend Styles */

.emdad-form-wrapper {
    max-width: 640px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.emdad-form-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.emdad-field {
    margin-bottom: 18px;
}

.emdad-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.emdad-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.emdad-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.emdad-map-wrapper {
    position: relative;
}

.emdad-map {
    width: 100%;
    height: 320px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f5f5f5;
}

.emdad-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
}

.emdad-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.emdad-btn-primary {
    background: #0073aa;
    color: #fff;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
}

.emdad-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.emdad-btn-secondary {
    margin-top: 8px;
    background: #f0f0f0;
    color: #333;
}

.emdad-btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.emdad-error {
    display: block;
    margin-top: 6px;
    color: #c00;
    font-size: 13px;
    min-height: 16px;
}

.emdad-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.emdad-result.success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.emdad-result.error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.emdad-result strong {
    font-weight: 700;
}


/* Vehicle Selector Wrapper (for toggling) */
.emdad-field select.emdad-input {
    appearance: auto;
    cursor: pointer;
}

#emdad-vehicle-select-wrapper,
#emdad-custom-vehicle-wrapper {
    animation: emdad-fade-in 0.2s ease-in-out;
}

@keyframes emdad-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}