:root {
    --abrfq-navy: #1a2332;
    --abrfq-copper: #c8862a;
    --abrfq-steel: #2c3e55;
    --abrfq-light: #f8fafc;
    --abrfq-border: #d1d9e3;
    --abrfq-text: #1a2332;
    --abrfq-muted: #6b7280;
    --abrfq-success: #639922;
    --abrfq-error: #e24b4a;
    --abrfq-wa: #25d366;
}

.abrfq-trigger-wrap {
    margin-top: 12px;
}
.abrfq-trigger-btn {
    background: transparent;
    border: 1.5px solid #1e2a78;
    color: #e8363c;
    padding: 11px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    /* width: 100%;*/
    cursor: pointer;
    transition: all 0.2s ease;
}
.abrfq-trigger-btn:hover,
.abrfq-trigger-btn:focus {
    background: #1e2a78;
    color: #fff;
}
.abrfq-trigger-note {
    font-size: 11px;
    color: var(--abrfq-muted);
    text-align: left;
    margin-top: 5px;
}
.abrfq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 35, 50, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
}
.abrfq-overlay[hidden] {
    display: none !important;
}
.abrfq-panel[hidden],
.abrfq-popup[hidden] {
    display: none !important;
}
.abrfq-popup,
.abrfq-option-card,
.abrfq-form input,
.abrfq-form select,
.abrfq-form textarea,
.abrfq-submit-button,
.abrfq-continue-button {
    box-sizing: border-box;
}
.abrfq-popup {
    position: relative;
    width: min(92vw, 620px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transform: translateY(20px);
    animation: abrfq-fade-in 0.25s ease forwards;
}
.abrfq-option-card {
    border: 1px solid #e5e9ef;
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.abrfq-option-card span:last-child {
    display: block;
    color: var(--abrfq-muted);
    margin-top: 6px;
}
@keyframes abrfq-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.abrfq-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: #fff;
    color: #000;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}
.abrfq-popup-header {
    background: #1d2c7a;
    padding: 20px;
    color: #fff;
    position: relative;
}
.abrfq-label {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8ba8c9;
    margin-bottom: 8px;
}
.abrfq-product-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    max-height: 3rem;
    overflow: hidden;
    color: #fff;
    font-family: Arial, sans-serif;
}
.abrfq-product-sku {
    font-size: 11px;
    color: #6b8ab0;
    margin-top: 6px;
}
.abrfq-option-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}
.abrfq-option-card {
    border: 1px solid #e5e9ef;
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.abrfq-option-card.abrfq-active {
    border-color: #e5e9ef;
    background: #fffaf4;
}
.abrfq-option-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}
.abrfq-option-card strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--abrfq-text);
    margin-bottom: 6px;
}
.abrfq-option-card span {
    display: block;
    font-size: 11px;
    color: var(--abrfq-muted);
}
.abrfq-panel {
    padding: 20px;
}
.abrfq-panel-contact h3,
.abrfq-panel-form h3 {
    font-size: 13px;
    color: var(--abrfq-text);
    margin-bottom: 10px;
}
.abrfq-contact-text {
    font-size: 12px;
    color: var(--abrfq-muted);
    margin-bottom: 20px;
}
.abrfq-contact-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e5e9ef;
}
.abrfq-contact-row:last-child {
    border-bottom: none;
}
.abrfq-contact-value {
    font-size: 13px;
    color: var(--abrfq-text);
    font-weight: 500;
    margin: 0;
}
.abrfq-contact-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}
.abrfq-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e9ef;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: #1e2a78;
    transition: all 0.2s ease;
}
.abrfq-contact-action:hover {
    background: #e8363c;
    color: #fff;
}
.abrfq-footer-text {
    font-size: 11px;
    color: #1e2a78;
    text-align: center;
    margin-top: 18px;
}
.abrfq-form {
    display: block;
}
.abrfq-form label span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--abrfq-text);
    margin-bottom: 8px;
}
.abrfq-form input,
.abrfq-form select,
.abrfq-form textarea {
    width: 100%;
    border: 1px solid var(--abrfq-border);
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    color: var(--abrfq-text);
    background: #fff;
}
.abrfq-form small {
    display: block;
    color: var(--abrfq-muted);
    margin-top: 6px;
    font-size: 11px;
}
.abrfq-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.abrfq-upload-row {
    display: grid;
    gap: 14px;
}
.abrfq-upload-zone {
    border: 1px dashed var(--abrfq-border);
    border-radius: 8px;
    background: var(--abrfq-light);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
}
.abrfq-upload-zone:hover {
    border-color: var(--abrfq-copper);
}
.abrfq-upload-placeholder {
    color: var(--abrfq-muted);
}
.abrfq-upload-placeholder span {
    display: inline-block;
    font-size: 32px;
    margin-bottom: 12px;
}
.abrfq-upload-list {
    display: grid;
    gap: 10px;
}
.abrfq-upload-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--abrfq-border);
    border-radius: 6px;
}
.abrfq-upload-name {
    font-size: 13px;
    color: var(--abrfq-text);
    word-break: break-word;
}
.abrfq-upload-item progress {
    width: 100%;
    margin-top: 6px;
}
.abrfq-remove-file {
    border: none;
    background: transparent;
    color: var(--abrfq-error);
    font-size: 18px;
    cursor: pointer;
}
.abrfq-checkbox-row {
    padding-left: 4px;
}
.abrfq-checkbox-row label {
    font-size: 13px;
    color: var(--abrfq-text);
}
.abrfq-errors {
    color: var(--abrfq-error);
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}
.abrfq-submit-button,
.abrfq-continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #e8363c;
    color: #fff;
    border: none;
    border-radius: 4px;
    height: 44px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.abrfq-submit-button:hover,
.abrfq-continue-button:hover {
    background: #b76d1f;
}
.abrfq-private-note {
    font-size: 10px;
    color: #9aa5b1;
    text-align: center;
    margin-top: 10px;
}
.abrfq-field-error {
    font-size: 12px;
    color: var(--abrfq-error);
    margin-top: 6px;
}
.abrfq-invalid {
    border-color: var(--abrfq-error) !important;
}
.abrfq-panel-success {
    text-align: center;
}
.abrfq-success-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--abrfq-success);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 18px;
}
.abrfq-success-actions {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}
.abrfq-success-actions .abrfq-contact-action {
    width: 100%;
}

@media (max-width: 640px) {
    .abrfq-popup {
        width: 100vw;
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .abrfq-option-cards {
        grid-template-columns: 1fr;
    }
    .abrfq-two-cols {
        grid-template-columns: 1fr;
    }
    .abrfq-popup-header {
        border-radius: 12px 12px 0 0;
    }
}
