/**
 * PC-Online Quote System — Front-end CSS
 * כפתורי סל + טופס בקשה
 */

/* ═══ BUTTONS WRAP ══════════════════════════════════════════════════════════ */
.pc-quote-buttons-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0 10px;
    direction: rtl;
}

/* ═══ BASE BUTTON ═══════════════════════════════════════════════════════════ */
.pc-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.18s, transform 0.1s;
    white-space: nowrap;
    line-height: 1;
}
.pc-quote-btn:active {
    transform: scale(0.97);
}

/* PDF button */
.pc-quote-btn--pdf {
    background: #0055cc;
    color: #fff !important;
}
.pc-quote-btn--pdf:hover {
    background: #003fa8;
    color: #fff !important;
    text-decoration: none;
}

/* Request button */
.pc-quote-btn--request {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff !important;
    color: #0055cc !important;
    border: 2px solid #0055cc !important;
}
.pc-quote-btn--request:hover {
    background: #eef2ff !important;
}

/* Submit */
.pc-quote-btn--submit {
    background: #0a7c42;
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
}
.pc-quote-btn--submit:hover {
    background: #075f32;
}
.pc-quote-btn--submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Cancel */
.pc-quote-btn--cancel {
    background: transparent;
    color: #777;
    border: 1px solid #ccc;
    padding: 12px 20px;
}
.pc-quote-btn--cancel:hover {
    background: #f5f5f5;
    color: #333;
}

/* ═══ FORM WRAP ═════════════════════════════════════════════════════════════ */
.pc-quote-form-wrap {
    direction: rtl;
    margin: 4px 0 24px;
}

.pc-quote-form-inner {
    background: #f7f9ff;
    border: 1.5px solid #c0cde8;
    border-radius: 8px;
    padding: 24px 28px;
    max-width: 680px;
}

.pc-quote-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #003399;
    margin: 0 0 6px;
}

.pc-quote-form-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
}

/* ═══ FIELDS ════════════════════════════════════════════════════════════════ */
.pc-quote-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pc-quote-field {
    margin-bottom: 16px;
}

.pc-quote-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.pc-quote-field label .optional {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

.pc-quote-field input,
.pc-quote-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #c0c8e0;
    border-radius: 5px;
    font-size: 14px;
    direction: rtl;
    text-align: right;
    background: #fff;
    color: #222;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

.pc-quote-field input:focus,
.pc-quote-field textarea:focus {
    border-color: #0055cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,85,204,0.12);
}

.pc-quote-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* ═══ FORM ACTIONS ══════════════════════════════════════════════════════════ */
.pc-quote-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

/* ═══ MESSAGE ═══════════════════════════════════════════════════════════════ */
.pc-quote-msg {
    margin-top: 14px;
    padding: 11px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.pc-quote-msg--success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.pc-quote-msg--error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ═══ MOBILE ════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .pc-quote-buttons-wrap {
        flex-direction: column;
    }
    .pc-quote-btn {
        width: 100%;
        font-size: 14px;
        padding: 13px 18px;
    }
    .pc-quote-field-row {
        grid-template-columns: 1fr;
    }
    .pc-quote-form-inner {
        padding: 18px 16px;
    }
}
