* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1f2933;
    background: #f2f5f4;
}

.button {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #cbd5d1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.button:hover {
    background: #f0f4f3;
}

.button.primary {
    background: #0f6f5c;
    border-color: #0f6f5c;
    color: #ffffff;
}

.button.primary:hover {
    background: #0c5a4b;
}

.button.small {
    padding: 4px 10px;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

#map {
    position: fixed;
    inset: 0;
}

#map.point-mode {
    cursor: crosshair;
}

#map.point-mode .leaflet-interactive {
    cursor: crosshair;
}

.map-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.map-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f6f5c;
}

.map-actions {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.click-error {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    background: #c0392b;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    font-size: 16px;
    font-weight: 700;
}

.point-mode-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: #0f6f5c;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.form-page {
    display: flex;
    justify-content: center;
    padding: 32px 16px 64px;
}

.form-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 32px 36px;
    width: 100%;
    max-width: 760px;
}

.form-card.centered {
    text-align: center;
    max-width: 520px;
}

.form-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #0f6f5c;
}

.form-card h2 {
    margin: 28px 0 12px;
    font-size: 17px;
    color: #0f6f5c;
    border-bottom: 1px solid #e0e7e5;
    padding-bottom: 6px;
}

.form-notice {
    background: #fdf6e3;
    border: 1px solid #f0e2b6;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13.5px;
}

.location-summary {
    background: #eef6f4;
    border: 1px solid #cde5df;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

.location-summary a {
    margin-left: 8px;
    color: #0f6f5c;
}

.form-errors {
    background: #fdeaea;
    border: 1px solid #f2c4c4;
    border-radius: 6px;
    padding: 10px 12px;
    color: #a02b2b;
    font-size: 14px;
    margin: 12px 0;
}

.form-errors-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

.required-star {
    color: #c0392b;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5d1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid #0f6f5c33;
    border-color: #0f6f5c;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.field-row.three {
    grid-template-columns: 2fr 1fr 1fr;
}

.field-hint,
.field-note {
    font-size: 12.5px;
    color: #5f6b76;
    margin-top: 5px;
}

.attachment-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attachment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f4f7f9;
    border: 1px solid #dde5ea;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 13.5px;
}

.attachment-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
}

.attachment-remove:hover {
    text-decoration: underline;
}

.attachment-total {
    font-size: 13px;
    font-weight: 600;
    color: #33424e;
    margin-top: 2px;
}

.attachment-total.over-limit {
    color: #c0392b;
}

.disclaimer-box {
    margin-top: 26px;
    background: #f8f6f0;
    border: 1px solid #e0d9c7;
    border-radius: 6px;
    padding: 16px 18px;
}

.disclaimer-box h2 {
    margin-top: 0;
}

.disclaimer-box p {
    font-size: 13.5px;
    color: #4a5560;
    line-height: 1.55;
}

.disclaimer-agree {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.disclaimer-agree input {
    margin-top: 3px;
}

.field-error {
    color: #a02b2b;
    font-size: 13px;
    margin-top: 4px;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #c0392b;
}

.checkbox-grid {
    border: 1px solid #e0e7e5;
    border-radius: 6px;
    padding: 10px 12px;
}

.checkbox-grid > div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px 12px;
}

.checkbox-grid label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.hp-field {
    display: none;
}

.cf-turnstile {
    margin: 18px 0;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

@media (max-width: 640px) {
    .field-row,
    .field-row.three,
    .checkbox-grid > div {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 22px 18px;
    }

    .map-actions {
        flex-direction: column;
        align-items: flex-end;
    }
}
