/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: white;
    min-height: 100vh;
}

/* ========== HOME PAGE ========== */

/* Content Area */
.content {
    padding: 30px 25px;
    text-align: center;
    background: white;
    max-width: 100%;
}

/* Logo Container - Fixed Flexbox Layout */
.logo-container {
    margin: 20px 0 30px;
    background: linear-gradient(135deg, #6B8E23 0%, #558B2F 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 45%;
    object-fit: contain;
}

.logo-yusr {
    height: 60px;
    width: auto;
    max-width: 45%;
    object-fit: contain;
	scale: 1.5;
}

.Municipality {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    display: block;
}

.header-municipality {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
	padding: 10px 0 0 0;
}

/* Welcome Text */
.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.welcome-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Description */
.description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Action Buttons */
.action-btn {
    width: 100%;
    padding: 18px 20px;
    border-radius: 15px;
    border: 2px solid #d4e5d4;
    background: #f5fdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #e8f5e8;
}

.action-btn:active {
    transform: translateY(0);
}

/* SVG Icon Styling */
.btn-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Social Media */
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.social-icon i,
.social-icon svg {
    color: white;
    fill: white;
}

.facebook {
    background: #1877f2;
}

.twitter {
    background: #000000;
}

.youtube {
    background: #ff0000;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.whatsapp {
    background: #25d366;
}

/* ========== REPORT PAGE ========== */

.page-container {
    max-width: 100%;
    min-height: 100vh;
    background: white;
}

/* Header - Fixed Layout */
.page-header {
    display: flex;
    flex-direction:column;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #6B8E23 0%, #558B2F 100%);
    position: relative;
}

.back-btn {
    font-size: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    z-index: 10;
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 60%;
}

.header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-logo-img-yusr {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Page Title */
.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.title-icon {
    width: 32px;
    height: 32px;
}

.page-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Page Description */
.page-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    padding: 0 20px 20px;
    text-align: center;
}

/* Form */
.report-form {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* Radio Grid */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #7FC84A;
    background: #f9fff9;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    accent-color: #7FC84A;
}

.radio-option span {
    font-size: 14px;
    color: #333;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #7FC84A;
}

.form-input::placeholder {
    color: #999;
}

/* Phone Input */
.phone-input {
    position: relative;
}

.phone-input .form-input {
    padding-left: 100px;
}

.country-code {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 2px solid #e0e0e0;
}

.flag-icon {
    width: 24px;
    height: auto;
    border-radius: 3px;
}

/* File Upload */
.file-upload {
    border: 2px dashed #d4e5d4;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #f9fff9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #7FC84A;
    background: #f0f9f0;
}

.upload-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.file-upload p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* File Preview */
.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

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

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #7FC84A;
}

.form-textarea::placeholder {
    color: #999;
}

/* Map Controls */
.map-controls {
    margin-bottom: 12px;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #7FC84A;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #6BB03A;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(127, 200, 74, 0.3);
}

.location-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 300px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

/* Additional Options */
.additional-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.option-btn {
    flex: 1;
    min-width: 140px;
    padding: 16px;
    border: 2px solid #d4e5d4;
    border-radius: 10px;
    background: #f5fdf5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-btn .btn-icon {
    width: 40px;
    height: 40px;
}

.option-btn span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: #7FC84A;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #6BB03A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 200, 74, 0.3);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.tracking-code {
    margin: 20px 0;
}

.tracking-code > span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f9f9f9;
}

.code-box span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.copy-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.modal-btn {
    width: 100%;
    padding: 16px;
    background: #7FC84A;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #6BB03A;
}

/* Home Indicator */
.home-indicator {
    width: 140px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 3px;
    margin: 10px auto 15px;
}

/* ========== RESPONSIVE ========== */

@media (min-width: 768px) {
    .content {
        padding: 50px 50px;
    }

    .logo-container {
        margin: 30px auto 40px;
        max-width: 600px;
        padding: 25px;
    }

    .logo,
    .logo-yusr {
        height: 70px;
        max-width: 40%;
    }

    .Municipality {
        font-size: 20px;
    }

    .welcome-title {
        font-size: 32px;
    }

    .welcome-subtitle {
        font-size: 26px;
    }

    .description {
        font-size: 16px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    .button-container {
        gap: 20px;
    }

    .action-btn {
        padding: 20px 25px;
        font-size: 18px;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .home-indicator {
        display: none;
    }

    /* Report Page Tablet */
    .radio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-title h1 {
        font-size: 28px;
    }

    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .map-container {
        height: 400px;
    }

    .header-logo-img,
    .header-logo-img-yusr {
        height: 45px;
    }

    .back-btn {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .content {
        padding: 60px 80px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .logo-container {
        max-width: 700px;
    }

    .logo,
    .logo-yusr {
        height: 80px;
		max-width: 80%;
    }

    .welcome-title {
        font-size: 36px;
    }

    .welcome-subtitle {
        font-size: 28px;
    }

    .description {
        font-size: 18px;
        max-width: 800px;
    }

    .button-container {
        max-width: 700px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    /* Report Page Desktop */
    .report-form {
        padding: 40px;
    }

    .map-container {
        height: 450px;
    }

    .header-logo-img,
    .header-logo-img-yusr {
        height: 50px;
    }
}

@media (min-width: 1440px) {
    .content {
        padding: 80px 100px;
        max-width: 1400px;
    }
}

/* Mobile specific */
@media (max-width: 767px) {
    .home-indicator {
        display: block;
    }

    .header-logo {
        max-width: 75%;
    }

    .back-btn {
        font-size: 18px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .logo-container {
        padding: 15px;
    }

    .logo,
    .logo-yusr {
        height: 50px;
        max-width: 73%;
    }

    .Municipality {
        font-size: 16px;
    }

    .additional-options {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states */
.action-btn:focus,
.social-icon:focus,
.radio-option:focus-within,
.form-input:focus,
.form-textarea:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .social-media,
    .home-indicator,
    .back-btn {
        display: none;
    }
}