* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #edf2f7;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
    font-size: 42px;
    color: #1a202c;
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    font-size: 20px;
    color: #4a5568;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.benefits h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 12px 0;
    color: #4a5568;
    font-size: 16px;
    border-bottom: 1px solid #e2e8f0;
}

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

.benefits li:before {
    content: "✓ ";
    color: #48bb78;
    font-weight: bold;
    margin-right: 10px;
}

.price-callout {
    text-align: center;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px auto 10px;
    max-width: 520px;
}

.order-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    padding: 24px 48px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    /* background: linear-gradient(179deg, #1c7b34 0%, #ebcc13 75%); */
    background: #000000cf;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.hidden {
    display: none;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

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

.drawing-area {
    margin: 40px 0;
}

.map-container {
    border: 3px solid #667eea;
    border-radius: 8px;
    background: #f9fafb;
    position: relative;
    margin: 20px 0;
    height: 500px;
}

.drawing-info {
    background: #eef2ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: #4c51bf;
    font-size: 14px;
}

.toast {
    display: none;
    margin: 10px 0 0;
    padding: 14px 16px;
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 8px;
    color: #2b6cb0;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.toast.error {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.drawing-popup {
    background: #1a202c;
    color: #edf2f7;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.drawing-popup .leaflet-popup-content-wrapper {
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.drawing-popup .leaflet-popup-tip {
    background: #1a202c;
}

.drawing-list {
    margin: 20px 0;
}

.drawing-item {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
}

.drawing-item h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.form-group {
    margin: 15px 0;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

.field-invalid {
    border-color: #e53e3e;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #c53030;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 80px;
    color: #48bb78;
    margin-bottom: 20px;
}

.success-message h2 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
}

.canvas-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.delete-btn {
    background: #f56565;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.delete-btn:hover {
    background: #e53e3e;
}

.footer {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0 0 8px;
    color: #4a5568;
    align-self: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* .footer-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
} */

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 4px;
}

.footer-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    margin-left: 50px;
}

.footer-link:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #ffffff;
    width: min(520px, 92%);
    margin: 30vh auto 0;
    padding: 24px 24px 18px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-content h2 {
    margin-bottom: 12px;
    font-size: 24px;
    color: #1a202c;
}

.modal-content p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 16px;
}

.modal-total {
    font-size: 18px;
    color: #1a202c;
    margin-top: 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
