/* Report Form Styles - Stili specifici per il form di segnalazione */

.report-form-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.report-form-card:hover {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
}

.report-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.report-form-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.coordinates-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.report-form-card .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-form-card .form-label i {
    font-size: 1.1rem;
    color: #667eea;
}

.report-form-card .form-control,
.report-form-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.report-form-card .form-control:focus,
.report-form-card .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.report-form-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.report-form-card .btn {
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.report-form-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.report-form-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

.report-form-card .btn-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.report-form-card .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.report-form-card .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.report-form-card .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.3);
}

/* Photo Preview */
#photo-preview {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#photo-preview .img-thumbnail {
    border: 3px solid #667eea;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#photo-preview .img-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.375rem;
}

/* Show Form Button - Bottone principale sotto la mappa */
#showFormBtn {
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

#showFormBtn:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#showFormBtn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

#showFormBtn:disabled {
    background: #6c757d;
    color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

#pinHelpText {
    transition: opacity 0.3s ease;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section .btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Field error state */
.report-form-card .form-control.field-error,
.report-form-card .form-select.field-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
    background-color: #fff8f7;
}

.report-form-card .form-control.field-error:focus,
.report-form-card .form-select.field-error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    transform: translateY(-2px);
}

.field-error-message {
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .report-form-header {
        padding: 1.25rem 1.5rem;
    }

    .report-form-header h4 {
        font-size: 1.25rem;
    }

    .report-form-card .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}