/**
 * BAOLU.VN - Submission Form Styles
 * 
 * CSS cho form báo cáo ngập lụt
 * Mobile-first responsive design
 * 
 * @package BAOLU
 * @version 1.0.0
 */

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --form-primary: #2196F3;
    --form-primary-dark: #1976D2;
    --form-success: #4CAF50;
    --form-warning: #FF9800;
    --form-error: #f44336;
    --form-bg: #f5f7fa;
    --form-card-bg: #ffffff;
    --form-border: #e0e0e0;
    --form-text: #333333;
    --form-text-light: #666666;
    --form-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --form-radius: 12px;
    --form-radius-sm: 8px;
}

/* ========================================
   PAGE LAYOUT
   ======================================== */

.baolu-submit-page {
    background: var(--form-bg);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Hero Section */
.submit-hero {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    color: white;
    padding: 12px 15px;
    text-align: center;
}

.submit-hero h1 {
    font-size: 1.8rem;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.submit-hero p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}
/* Container */
.submit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
}

.container {
    width: 100%;
}

/* ========================================
   INSTRUCTIONS CARDS
   ======================================== */

.submit-instructions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.instruction-card {
    background: var(--form-card-bg);
    border-radius: var(--form-radius-sm);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--form-shadow);
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--form-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.instruction-card h3 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--form-text);
}

.instruction-card p {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: var(--form-text-light);
}
/* ========================================
   FORM STYLES
   ======================================== */

.baolu-form {
    background: var(--form-card-bg);
    border-radius: var(--form-radius);
    box-shadow: var(--form-shadow);
    overflow: hidden;
}

/* Form Sections */
.form-section {
    padding: 25px 20px;
    border-bottom: 1px solid var(--form-border);
    transition: background-color 0.3s ease;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section.is-complete {
    background: rgba(76, 175, 80, 0.05);
}

.form-section.is-complete .section-header .section-icon {
    background: var(--form-success);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--form-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--form-text);
    font-weight: 600;
}

/* Optional tag in section header */
.optional-tag {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: 5px;
}

/* Section note/hint */
.section-note {
    margin: -10px 0 15px 52px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Form Rows */
.form-row {
    margin-bottom: 18px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

/* Labels */
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--form-text);
    margin-bottom: 8px;
}

.required {
    color: var(--form-error);
}

/* Inputs */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--form-border);
    border-radius: var(--form-radius-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: var(--form-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--form-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid {
    border-color: var(--form-error);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Input with icon/suffix */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 50px;
}

.input-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--form-text-light);
    font-weight: 500;
}

/* Field hints */
.field-hint {
    font-size: 0.8rem;
    color: var(--form-text-light);
    margin-top: 5px;
}

/* Datetime input styling */
input[type="datetime-local"] {
    padding: 12px 15px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #fff;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    opacity: 0.7;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Report time field special styling */
#report_time {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232196F3' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12,6 12,12 16,14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 35px;
}

.char-count {
    font-size: 0.75rem;
    color: var(--form-text-light);
    text-align: right;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--form-primary);
}

.checkbox-label a {
    color: var(--form-primary);
    text-decoration: underline;
}

/* ========================================
   LOCATION PICKER
   ======================================== */

.location-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Search box */
.location-search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--form-border);
    border-radius: var(--form-radius-sm);
}

.location-search-input:focus {
    outline: none;
    border-color: var(--form-primary);
}

/* Map container */
.location-picker-map {
    height: 350px;
    border-radius: var(--form-radius-sm);
    border: 2px solid var(--form-border);
    overflow: hidden;
}

/* Location info */
.location-info {
    background: rgba(33, 150, 243, 0.08);
    border-radius: var(--form-radius-sm);
    padding: 15px;
    border-left: 4px solid var(--form-primary);
}

.location-coords,
.location-address {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.location-address {
    margin-bottom: 0;
}

.location-info .label {
    font-weight: 600;
    color: var(--form-text-light);
    min-width: 70px;
}

.location-hint {
    font-size: 0.85rem;
    color: var(--form-text-light);
    margin: 0;
    padding: 10px;
    background: #fff9e6;
    border-radius: var(--form-radius-sm);
    border-left: 3px solid #ffc107;
}

/* Location validation message */
.location-validation-msg {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: var(--form-radius-sm);
    font-size: 0.9rem;
    border-left: 4px solid #ffc107;
}

/* Location search/action message */
.location-message {
    padding: 10px 15px;
    border-radius: var(--form-radius-sm);
    font-size: 0.9rem;
    text-align: center;
}

.location-message.loading {
    background: #e3f2fd;
    color: #1976D2;
}

.location-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.location-message.error {
    background: #ffebee;
    color: #c62828;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--form-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search,
.btn-location {
    background: var(--form-primary);
    color: white;
}

.btn-search:hover,
.btn-location:hover {
    background: var(--form-primary-dark);
}

.btn-location {
    background: #ff5722;
}

.btn-location:hover {
    background: #e64a19;
}

/* Submit actions */
.submit-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-reset {
    background: #f5f5f5;
    color: var(--form-text);
    border: 2px solid var(--form-border);
}

.btn-reset:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--form-text-light);
    margin-top: 15px;
}

/* ========================================
   IMAGE UPLOAD
   ======================================== */

.upload-area {
    border: 2px dashed var(--form-border);
    border-radius: var(--form-radius-sm);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: var(--form-primary);
    background: rgba(33, 150, 243, 0.05);
}

.upload-area.dragover {
    border-color: var(--form-primary);
    background: rgba(33, 150, 243, 0.1);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1rem;
    color: var(--form-text);
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--form-text-light);
}

.upload-input {
    display: none;
}

/* Image preview grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--form-radius-sm);
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-remove:hover {
    background: #f44336;
}

/* ========================================
   FORM MESSAGES
   ======================================== */

.form-message {
    padding: 15px 20px;
    border-radius: var(--form-radius-sm);
    margin-bottom: 20px;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.form-message.warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

/* ========================================
   SUCCESS STATE
   ======================================== */

.submit-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.5rem;
    color: var(--form-success);
    margin-bottom: 10px;
}

.success-message {
    font-size: 1rem;
    color: var(--form-text-light);
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.success-actions .btn {
    width: 100%;
}

/* ========================================
   QUICK LINKS
   ======================================== */

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--form-radius-sm);
    box-shadow: var(--form-shadow);
    color: var(--form-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-link.emergency {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.quick-link.emergency:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

/* ========================================
   LOADING STATE
   ======================================== */

.baolu-form.is-submitting {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.baolu-form.is-submitting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--form-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (min-width: 600px) {
    .submit-hero {
        padding: 12px 20px;
    }
    
    .submit-hero h1 {
        font-size: 1.8rem;
    }
    
    .submit-instructions {
        flex-direction: row;
    }
    
    .instruction-card {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 6px 8px;
    }    
    
    .form-section {
        padding: 30px;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-picker-map {
        height: 400px;
    }
    
    .submit-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-reset {
        min-width: 120px;
    }
    
    .btn-submit {
        min-width: 200px;
    }
    
    .success-actions {
        flex-direction: row;
    }
    
    .success-actions .btn {
        width: auto;
    }
    
    .quick-links {
        flex-direction: row;
    }
    
    .quick-link {
        flex: 1;
    }
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 900px) {
    .submit-hero h1 {
        font-size: 2rem;
    }
    
    .submit-container {
        padding: 15px 20px;
    }
    
    .location-picker-map {
        height: 450px;
    }
    
    .image-preview-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================
   TERMS MODAL POPUP
   ======================================== */

.terms-link {
    color: var(--form-primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.terms-link:hover {
    color: #0056b3;
}

/* Modal Overlay */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

/* Modal Container */
.terms-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--form-border);
    background: linear-gradient(135deg, var(--form-primary) 0%, #0056b3 100%);
    border-radius: 16px 16px 0 0;
}

.terms-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.terms-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.terms-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal Content */
.terms-modal-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h3 {
    font-size: 1rem;
    color: var(--form-primary);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.terms-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: var(--form-text);
    font-size: 0.95rem;
}

.terms-section ul {
    margin: 0;
    padding-left: 20px;
}

.terms-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--form-text);
    font-size: 0.95rem;
}

/* Nested list for sub-items */
.terms-section ul ul {
    margin-top: 8px;
    margin-bottom: 5px;
    padding-left: 15px;
    list-style-type: circle;
}

.terms-section ul ul li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.terms-section strong {
    color: var(--form-error);
}

.terms-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--form-primary);
}

.terms-note p {
    margin: 0;
}

/* Modal Footer */
.terms-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--form-border);
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.terms-modal-footer .btn {
    padding: 12px 30px;
    font-size: 1rem;
    min-width: 200px;
}

/* Mobile adjustments for modal */
@media (max-width: 576px) {
    .terms-modal-overlay {
        padding: 10px;
    }
    
    .terms-modal {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .terms-modal-header {
        padding: 15px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .terms-modal-header h2 {
        font-size: 1rem;
    }
    
    .terms-modal-content {
        padding: 20px;
    }
    
    .terms-section h3 {
        font-size: 0.95rem;
    }
    
    .terms-section p,
    .terms-section ul li {
        font-size: 0.9rem;
    }
    
    .terms-modal-footer {
        padding: 15px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .terms-modal-footer .btn {
        width: 100%;
        min-width: unset;
    }
}

/* ========================================
   DARK MODE (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode support
    :root {
        --form-bg: #1a1a1a;
        --form-card-bg: #2d2d2d;
        --form-border: #444444;
        --form-text: #e0e0e0;
        --form-text-light: #999999;
    }
    */
}

/* ========================================
   PHONE REQUIRED WARNING (Cần Cứu Khẩn Cấp)
   ======================================== */

/* Notice box */
.phone-required-notice {
    margin-top: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px solid #fd7e14;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
    animation: pulseWarning 2s ease-in-out infinite;
}

.phone-required-notice strong {
    color: #dc3545;
}

/* Warning hint style */
.field-hint.phone-required-warning {
    color: #dc3545 !important;
    font-weight: 600;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    margin-top: 8px;
}

/* Required field highlight */
input.required-field {
    border-color: #fd7e14 !important;
    background-color: #fffbf0 !important;
}

input.required-field:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.25) !important;
}

/* Pulse animation for warning */
@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(253, 126, 20, 0);
    }
}

/* ========================================
   INLINE FIELD VALIDATION ERRORS
   ======================================== */

/* Form group with error state */
.form-group.has-error .form-control,
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.form-group.has-error .form-control:focus,
.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

/* Inline error message below field */
.field-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    animation: shakeError 0.4s ease-in-out;
}

/* Error label highlight */
.form-group.has-error label {
    color: #dc3545;
}

/* Section with error - highlight border */
.form-section.has-error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

/* Shake animation for error */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ========================================
   TOAST NOTIFICATION (TOP OF SCREEN)
   ======================================== */

/* Toast container - fixed at top */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    pointer-events: none;
}

/* Individual toast */
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
    width: auto;
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastSlideDown 0.4s ease-out;
    transform-origin: top center;
}

/* Toast types */
.toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.toast.warning {
    background: linear-gradient(135deg, #fd7e14 0%, #e8690a 100%);
    color: white;
}

.toast.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.toast.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* Toast icon */
.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Toast message */
.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Toast close button */
.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Toast animations */
@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.toast.hiding {
    animation: toastSlideUp 0.3s ease-in forwards;
}

/* Mobile responsive for toast */
@media (max-width: 480px) {
    .toast-container {
        padding: 8px;
    }
    
    .toast {
        max-width: 95%;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .toast-icon {
        font-size: 1.2rem;
    }
    
    .toast-close {
        width: 26px;
        height: 26px;
    }
}

/* Safe area for iOS notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .toast-container {
        padding-top: calc(10px + env(safe-area-inset-top));
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .submit-hero,
    .submit-instructions,
    .location-picker-map,
    .upload-area,
    .submit-section,
    .quick-links {
        display: none;
    }
}
