/* BSAF Quote Request - Frontend Styles */
.bsaf-qr-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bsaf-qr-header {
    text-align: center;
    margin-bottom: 30px;
}

.bsaf-qr-header h2 {
    font-size: 2em;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.bsaf-qr-header p {
    color: #555;
    font-size: 1.05em;
    max-width: 600px;
    margin: 0 auto;
}

.bsaf-qr-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.bsaf-qr-section h3 {
    margin: 0 0 15px;
    font-size: 1.2em;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.bsaf-qr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.bsaf-qr-field {
    display: flex;
    flex-direction: column;
}

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

.bsaf-qr-field label {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bsaf-qr-field label .required {
    color: #dc2626;
}

.bsaf-qr-field input,
.bsaf-qr-field select,
.bsaf-qr-field textarea {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

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

.bsaf-qr-hint {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
}

/* Items Table */
.bsaf-qr-items {
    margin-bottom: 10px;
}

.bsaf-qr-item-header {
    display: grid;
    grid-template-columns: 1fr 100px 40px;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsaf-qr-item-row {
    display: grid;
    grid-template-columns: 1fr 100px 40px;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.bsaf-qr-pn-input,
.bsaf-qr-qty-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.bsaf-qr-qty-input {
    text-align: center;
}

.bsaf-qr-remove-row {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    border-radius: 4px;
}

.bsaf-qr-remove-row:hover {
    background: #fef2f2;
}

.bsaf-qr-add-btn {
    background: none;
    border: 1px dashed #94a3b8;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
}

.bsaf-qr-add-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

/* Submit */
.bsaf-qr-submit-section {
    text-align: center;
    padding: 20px 0;
}

.bsaf-qr-submit-btn {
    padding: 14px 40px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.bsaf-qr-submit-btn:hover {
    background: #1d4ed8;
}

.bsaf-qr-submit-btn:active {
    transform: scale(0.98);
}

.bsaf-qr-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.bsaf-qr-privacy {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

/* Success State */
.bsaf-qr-success {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.bsaf-qr-success-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin-bottom: 15px;
}

.bsaf-qr-success h3 {
    font-size: 1.5em;
    color: #1a1a1a;
}

.bsaf-qr-back-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
    .bsaf-qr-row {
        grid-template-columns: 1fr;
    }
    .bsaf-qr-item-header {
        display: none;
    }
    .bsaf-qr-item-row {
        grid-template-columns: 1fr 80px 30px;
    }
}
