.avt-estimator-form,
.avt-estimator-result,
.avt-estimator-errors {
    box-sizing: border-box;
    max-width: 980px;
    margin: 32px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-family: inherit;
}

.avt-estimator-form *,
.avt-estimator-result *,
.avt-estimator-errors * {
    box-sizing: border-box;
}

.avt-form-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 4px solid #c9a227;
}

.avt-form-header h2,
.avt-estimator-result h3,
.avt-estimator-errors h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.avt-form-header p,
.avt-estimator-result p,
.avt-estimator-errors p {
    margin: 0 0 12px;
    color: #4b5563;
}

.avt-estimator-form fieldset {
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.avt-estimator-form legend {
    padding: 0 10px;
    font-weight: 700;
    color: #111827;
}

.avt-section-help {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.avt-option-hidden {
    display: none !important;
}

.avt-grid {
    display: grid;
    gap: 18px;
}

.avt-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avt-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
    color: #1f2937;
}

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

.avt-field span {
    font-size: 14px;
}

.avt-field input,
.avt-field select,
.avt-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    outline: none;
}

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

.avt-field input:focus,
.avt-field select:focus,
.avt-field textarea:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.avt-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.avt-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    font-weight: 500;
}

.avt-options input {
    width: auto;
    min-height: auto;
}


.avt-work-details {
    margin-top: 18px;
    padding: 16px;
    border: 1px dashed #c9a227;
    border-radius: 14px;
    background: #fffdf5;
}

.avt-work-detail[hidden] {
    display: none !important;
}

.avt-work-detail-visible {
    animation: avtFadeIn 0.18s ease-in-out;
}

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

.avt-form-actions {
    text-align: center;
    padding-top: 8px;
}

.avt-form-actions button {
    border: 0;
    border-radius: 999px;
    padding: 15px 28px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.avt-form-actions button:hover,
.avt-form-actions button:focus {
    background: #c9a227;
    color: #111827;
}

.avt-form-actions p {
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.avt-result-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 18px;
    border-radius: 14px;
    background: #fef3c7;
    color: #111827;
    font-size: 20px;
}

.avt-result-price strong {
    font-size: 28px;
}

.avt-estimator-errors {
    border-color: #fca5a5;
    background: #fef2f2;
}

.avt-estimator-errors ul {
    margin: 0 0 0 18px;
}

.avt-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .avt-estimator-form,
    .avt-estimator-result,
    .avt-estimator-errors {
        padding: 20px;
        margin: 20px auto;
    }

    .avt-grid-2,
    .avt-options {
        grid-template-columns: 1fr;
    }

    .avt-form-header h2,
    .avt-estimator-result h3,
    .avt-estimator-errors h3 {
        font-size: 23px;
    }

    .avt-result-price strong {
        font-size: 23px;
    }
}

.avt-other-detail[hidden],
.avt-work-details[hidden] {
    display: none !important;
}

.avt-options label.avt-option-with-description {
    align-items: flex-start;
}

.avt-option-with-description input {
    margin-top: 3px;
}

.avt-option-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.avt-option-copy strong {
    font-weight: 600;
}

.avt-option-copy small {
    color: #6b7280;
    font-weight: 400;
    line-height: 1.35;
}
