/* Reset CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
}

img {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --color-primary: #1F8AB0;
    --color-background: white;
    --color-text: #4d4d4d;
    --color-text-secondary: #666;
    --color-border: #ccc;
    --color-border-dark: #4d4d4d;
    --color-success: #93E7A7;
    --color-danger: #dc3545;
    --color-light-gray: #f0f0f0;
    --color-hover: #f8f9fa;
    --color-modal-overlay: rgba(0, 0, 0, 0.5);
    --border-radius: 3px;
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html, body {
    margin: 0;
    font-size: 16px;
    font-family: var(--font-family);
}

small {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

button {
    font-size: 1rem;
    background-color: #F7C631;
    color: #000000;
    border: none;
    padding: 0 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    height: 46px;
}

.header {
    padding: 1rem;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
}

.header img {
    max-width: 100px;
    height: auto;
}

.announcement {
    margin-bottom: 1rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-group small {
    display: block;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.location-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-wrapper {
    position: relative;
}

#map {
    height: 400px;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-primary);
}

.map-buttons {
    display: flex;
    gap: 1rem;
}

.map-buttons button {
    flex: 1;
}

.map-buttons button:hover {
}

.municipality-info {
    /* margin: 0.5rem 0; */
}

.location-icon {
    font-size: 1.2em;
}

.media-preview {
    /* margin-top: 10px; */
}

.media-container {
    height: 300px;
    margin-bottom: 0.5rem;
    text-align: center;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    background: var(--color-light-gray);
}

.media-container img {
    max-height: calc(100% - 40px);
    object-fit: contain;
    flex: 1;
}

.media-preview-photo {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.upload-area {
    height: 100%;
    background-color: #eeeeee;
}

.media-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.selector-button {
    flex: 1;
    /* border-radius: var(--border-radius); */
    /* border: 2px solid var(--color-border); */
    color: black;
}

.selector-button.active {
    /* border-color: var(--color-primary); */
    background: var(--color-primary);
    color: var(--color-background);
}

.selector-button.has-image {
    border: 3px solid #17af3b;
}

.remove-media {
    background: rgb(221 71 21 / 94%);
    color: white;
    cursor: pointer;
    height: 40px;
    border: none;
    border-radius: 0;
    width: 100%;
    border-top: 2px solid var(--color-primary);
}

input[type="email"], input[type="tel"], select {
    min-height: 46px;
    height: 46px;
}

textarea, input[type="email"], input[type="tel"], select {
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

select {
    margin-bottom: 0.5rem;
}

.improve-button {
}

.submit-zone {
    gap: 1rem;
    flex-direction: row;
    align-items: center;
    display: flex;
}

.submit-zone input {
    flex: 1;
    margin-bottom: 0;
}

.submit-zone button {
    background-color: #76ba4f;
    color: white;
    padding: 0 1rem;
}

.submit-zone button:disabled {
    background: var(--color-border);
    cursor: not-allowed;
}

.error-message {
    color: var(--color-danger);
    margin: 1rem 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

.modal[x-cloak] {
    display: none !important;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10000;
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.modal p {
    margin-bottom: 1.5rem;
    color: #666;
}

.otp-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.otp-input {
    padding: 0.75rem;
    font-size: 1.25rem;
    text-align: center;
    letter-spacing: 2px;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.verify-button {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.verify-button:hover {
    background-color: #45a049;
}

.verify-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#newIssueBtn {
    width: 100%;
    padding: 10px;
    background: var(--color-success);
    color: var(--color-background);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 10px;
}

.disclosure {
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.65em;
    padding: 0 1rem;
}

.disclosure a {
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.disclosure a:hover {
    text-decoration: underline;
}

.disclosure svg {
    width: 20px;
    height: 20px;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 0 0.5rem;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #dc3545;
} 