/**
 * Ask a Question / Call For Price page (index.php?main_page=ask_a_question)
 * Auto-loaded by html_header.php as a per-page stylesheet.
 * Builds on the .contact-us-content layout used by the Contact Us page.
 */

/* Product summary card */
.ask-question-product {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface);
    color: var(--main);
    transition: border-color 0.3s ease;
}
.ask-question-product:hover {
    border-color: var(--main);
    color: var(--main);
}
.ask-question-product .image {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    background-color: var(--white);
    overflow: hidden;
}
.ask-question-product .image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ask-question-product .image i {
    font-size: 32px;
    color: var(--secondary-2);
}
.ask-question-product .info {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
}
.ask-question-product .info .name {
    font-weight: 600;
}
.ask-question-product .view {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    white-space: nowrap;
}
.ask-question-product .view i {
    font-size: 10px;
}

/* Form */
.ask-question-form .wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.ask-question-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.ask-question-form textarea {
    min-height: 170px;
    resize: vertical;
}
.ask-question-form select {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 16px;
    line-height: 26px;
    color: var(--main);
    background-color: var(--white);
}
.ask-question-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
}
.ask-question-actions .link {
    color: var(--secondary);
}
.ask-question-actions .link:hover {
    color: var(--primary);
}

/* Success state */
.ask-question-success .messageStackSuccess {
    margin-bottom: 16px;
}
.ask-question-success > p {
    margin-bottom: 24px;
}

/* Error messages from the message stack sit above the form */
.ask-question-content .left .messageStackError {
    margin-bottom: 20px;
}

@media (max-width: 575px) {
    .ask-question-product {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 14px 16px;
    }
    .ask-question-product .image {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }
    .ask-question-product .info {
        flex-basis: calc(100% - 88px);
    }
    .ask-question-product .view {
        width: 100%;
        justify-content: flex-end;
    }
    .ask-question-form .cols {
        flex-direction: column;
    }
}
