body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 20px;
}

#app {
    max-width: 600px;
    margin: 0 auto;
}

.page-logo {
    max-width: 600px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.page-logo img {
    width: 287px;
    height: 38px;
    max-width: 100%;
    display: block;
}

.section-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}

.section-box.appear {
    animation: boxAppear 0.28s ease;
}

@keyframes boxAppear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h3 {
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.card {
    padding: 16px;
    border-radius: 10px;
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
}

button.card {
    width: 100%;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.card:hover {
    border-color: #000;
    transform: translateY(-2px);
}

.card.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.option-title {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
}

.option-address {
    display: block;
    margin-top: 4px;
    font-weight: 400;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 14px;
    font-weight: 500;
}

.field input,
.field select {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
    background: #fff;
}

.field input:focus,
.field select:focus {
    border-color: #000;
}

.suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-height: 220px;
    overflow-y: auto;
}

.suggestion-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f7f7f7;
}

.required {
    color: #d11a2a;
}

.muted {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.error-message {
    margin-top: 10px;
    color: #d11a2a;
    font-size: 13px;
    font-weight: 500;
}

.success-message {
    margin-top: 10px;
    color: #0f8a39;
    font-size: 13px;
    font-weight: 500;
}

.submit-btn {
    margin-top: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.submit-btn:hover {
    opacity: 0.92;
}

.phone-btn {
    margin-top: 14px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-btn:hover {
    background: #efefef;
    border-color: #bbb;
}

.phone-btn.clicked {
    animation: phoneClick 0.6s ease;
}

@keyframes phoneClick {
    0% {
        background: #000;
        color: #fff;
        border-color: #000;
    }
    70% {
        background: #000;
        color: #fff;
        border-color: #000;
    }
    100% {
        background: #f5f5f5;
        color: #333;
        border-color: #dcdcdc;
    }
}

.mailin-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.mailin-list {
    margin: 0 0 14px 18px;
    padding: 0;
}

.mailin-list li {
    margin: 4px 0;
}

.location-map {
    margin-top: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.summary-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
}

.summary-group {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
}

.summary-group-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #333;
}

.summary-group .summary-row {
    margin: 0;
}

.summary-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #efefef;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #444;
}

.summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

@media print {
    body {
        background: #fff;
        padding: 0;
    }
    #app > :not(#summary-section) {
        display: none !important;
    }
    #summary-section {
        display: block !important;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .summary-actions {
        display: none !important;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#summary-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#summary-loading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

#summary-loading.hidden,
.hidden {
    display: none;
}

.price {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#progress-container {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
}

.progress-fill {
    background: #4CAF50;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 20px;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #aaa;
}

.step-label {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.step-label.completed {
    color: #000;
    font-weight: 700;
}

.device-option .option-title {
    text-transform: uppercase;
}

.problem-option .option-title {
    text-transform: none;
}
