/* =============================================
   ORÇAMENTO DE PRODUTO — ESTILOS
   ============================================= */

/* ── Botão na página do produto ── */
.orp-btn-solicitar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 24px;
    background: #1a1a2e;
    color: #fff;
    border: 2px solid #1a1a2e;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, transform 0.15s;
    width: 100%;
    justify-content: center;
    font-family: inherit;
}

.orp-btn-solicitar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.orp-btn-solicitar:hover {
    background: #16213e;
    transform: translateY(-1px);
}

.orp-btn-solicitar:active {
    transform: translateY(0);
}

/* ── Overlay ── */
.orp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.orp-overlay.orp-active {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal ── */
.orp-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.28);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.orp-overlay.orp-active .orp-modal {
    transform: translateY(0) scale(1);
}

/* ── Fechar ── */
.orp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.07);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.orp-close:hover {
    background: rgba(0,0,0,0.14);
    color: #111;
}

/* ── Cabeçalho do modal ── */
.orp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 28px 0 28px;
}

.orp-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.orp-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orp-product-info {
    flex: 1;
    min-width: 0;
}

.orp-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e53e3e;
    margin: 0 0 6px 0;
}

.orp-product-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Formulário ── */
#orp-form {
    padding: 24px 28px 28px;
}

.orp-field {
    margin-bottom: 18px;
}

.orp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.orp-field label span {
    color: #e53e3e;
}

.orp-optional {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 12px;
}

.orp-field input,
.orp-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.orp-field input:focus,
.orp-field textarea:focus {
    border-color: #1a1a2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.orp-field input.orp-input-error,
.orp-field textarea.orp-input-error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.orp-field textarea {
    resize: vertical;
    min-height: 72px;
}

.orp-error {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 16px;
}

/* ── Botão enviar ── */
.orp-btn-enviar {
    width: 100%;
    padding: 14px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.orp-btn-enviar:hover {
    background: #16213e;
    transform: translateY(-1px);
}

.orp-btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Sucesso ── */
.orp-success {
    padding: 40px 28px 36px;
    text-align: center;
}

.orp-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #38a169, #48bb78);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(56,161,105,0.35);
    animation: orp-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes orp-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.orp-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}

.orp-success p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px;
}

.orp-btn-fechar-ok {
    padding: 12px 32px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.orp-btn-fechar-ok:hover {
    background: #16213e;
}

/* ── Responsivo ── */
@media (max-width: 480px) {
    .orp-header {
        padding: 22px 20px 0;
    }
    #orp-form {
        padding: 20px 20px 24px;
    }
    .orp-success {
        padding: 32px 20px 28px;
    }
    .orp-product-thumb {
        width: 64px;
        height: 64px;
    }
    .orp-product-name {
        font-size: 15px;
    }
}
