/* =========================================================
   HVAC SERVICE REQUEST MODAL
   ========================================================= */

.hvac-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
}

.hvac-modal.show {
    display: flex;
}

.hvac-modal-box {
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.hvac-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.hvac-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.hvac-modal-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

.hvac-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 24px;
    cursor: pointer;
}

.hvac-close:hover {
    background: #e5e7eb;
}


/* Progress */

.hvac-progress {
    display: flex;
    gap: 8px;
    padding: 18px 25px 5px;
}

.hvac-progress-step {
    flex: 1;
    height: 5px;
    border-radius: 5px;
    background: #e5e7eb;
}

.hvac-progress-step.active {
    background: #2563eb;
}


/* Body */

.hvac-modal-body {
    padding: 20px 25px 25px;
}

.hvac-step {
    display: none;
}

.hvac-step.active {
    display: block;
}

.hvac-step h3 {
    margin: 0 0 5px;
    font-size: 19px;
    color: #111827;
}

.hvac-step-description {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}


/* Fields */

.hvac-field {
    margin-bottom: 17px;
}

.hvac-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.hvac-required {
    color: #dc2626;
}

.hvac-field input,
.hvac-field select,
.hvac-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.hvac-field input:focus,
.hvac-field select:focus,
.hvac-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

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

.hvac-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}


/* Cooling / Heating */

.hvac-service-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hvac-service-type {
    padding: 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.hvac-service-type:hover {
    border-color: #2563eb;
}

.hvac-service-type.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37,99,235,.08);
}

.hvac-service-icon {
    font-size: 25px;
    margin-bottom: 5px;
}

.hvac-service-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.hvac-service-description {
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}


/* Urgency */

.hvac-urgency {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hvac-urgency button {
    padding: 11px 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.hvac-urgency button.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}


/* Buttons */

.hvac-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
}

.hvac-btn {
    min-height: 44px;
    padding: 11px 21px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.hvac-btn-back {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.hvac-btn-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.hvac-btn-primary:hover {
    background: #1d4ed8;
}

.hvac-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* Message */

.hvac-message {
    display: none;
    padding: 11px 13px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.hvac-message.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}


/* Success */

.hvac-success {
    display: none;
    text-align: center;
    padding: 35px 20px;
}

.hvac-success.show {
    display: block;
}

.hvac-success-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.hvac-success h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.hvac-success p {
    color: #6b7280;
}


/* Mobile */

@media (max-width: 600px) {

    .hvac-modal {
        padding: 10px;
    }

    .hvac-modal-box {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .hvac-modal-header,
    .hvac-modal-body {
        padding-left: 17px;
        padding-right: 17px;
    }

    .hvac-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hvac-service-types {
        grid-template-columns: 1fr 1fr;
    }

    .hvac-service-type {
        padding: 14px;
    }

    .hvac-urgency {
        grid-template-columns: 1fr;
    }
}