/* Prisberegner Main Container */
.prisberegner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.prisberegner-wrapper {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Service Selection */
.prisberegner-services h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a2e5c;
    margin-bottom: 20px;
    text-align: center;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.service-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-checkbox:hover {
    border-color: #1a2e5c;
    background: #f5f5f5;
}

.service-checkbox input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #ffc107;
}

.service-checkbox input[type="checkbox"]:checked {
    accent-color: #ffc107;
}

.service-checkbox .service-name {
    display: block;
    font-weight: 600;
    color: #1a2e5c;
    font-size: 16px;
    margin-bottom: 4px;
}

.service-checkbox .service-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Address Input */
.prisberegner-address {
    margin-bottom: 30px;
}

.prisberegner-address label {
    display: block;
    font-weight: 600;
    color: #1a2e5c;
    margin-bottom: 8px;
    font-size: 14px;
}

.address-input-wrapper {
    position: relative;
}

.address-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.address-input:focus {
    outline: none;
    border-color: #1a2e5c;
    box-shadow: 0 0 0 3px rgba(26, 46, 92, 0.1);
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.address-suggestions.active {
    display: block;
}

.address-suggestions li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.address-suggestions li:hover {
    background-color: #f5f5f5;
}

.address-suggestions li:last-child {
    border-bottom: none;
}

/* Map */
.prisberegner-map-wrapper {
    margin-bottom: 30px;
    position: relative;
}

.map-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.prisberegner-map {
    flex: 1;
    width: 100%;
    height: 400px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
}

.map-contact-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    height: fit-content;
}

.map-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.map-contact-button:active {
    transform: translateY(0);
}

.map-instructions {
    margin-top: 10px;
    padding: 10px;
    background: #e3f2fd;
    border-left: 4px solid #1a2e5c;
    border-radius: 4px;
    font-size: 13px;
    color: #1a2e5c;
}

.map-instructions p {
    margin: 0;
}

/* Result Display */
.prisberegner-result {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.area-display,
.price-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-label,
.price-label {
    font-weight: 600;
    color: #1a2e5c;
    font-size: 14px;
}

.area-value,
.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffc107;
}

.area-unit,
.price-unit {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Contact Button */
.contact-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.contact-button:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

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

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #1a2e5c;
}

.modal-content h3 {
    color: #1a2e5c;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a2e5c;
    box-shadow: 0 0 0 3px rgba(26, 46, 92, 0.1);
}

.submit-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Leaflet Overrides */
.leaflet-draw-toolbar a {
    background-color: #1a2e5c;
    border: none;
}

.leaflet-draw-toolbar a:hover {
    background-color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .prisberegner-wrapper {
        padding: 15px;
    }

    .prisberegner-services h2 {
        font-size: 20px;
    }

    .prisberegner-map {
        height: 300px;
    }

    .result-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .area-value,
    .price-value {
        font-size: 20px;
    }

    .modal-content {
        padding: 20px;
    }
}
