/* ════════════════════════════════════════════════════════════════
 *  RNTRC Form — Estilos
 *
 *  Layout 2 colunas, estilo limpo compatível com Impreza.
 *  Prefixo .rntrc- para evitar conflitos com o tema.
 * ════════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.rntrc-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Form ── */
.rntrc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rntrc-form-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ── Grid 2 colunas ── */
.rntrc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

/* ── Form Group ── */
.rntrc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rntrc-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.01em;
}

/* ── Inputs & Selects ── */
.rntrc-form input[type="text"],
.rntrc-form input[type="email"],
.rntrc-form input[type="tel"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.rntrc-form select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.rntrc-form input:focus,
.rntrc-form select:focus {
    border-color: #45895b;
    box-shadow: 0 0 0 2px rgba(69, 137, 91, 0.15);
    background: #fff;
}

/* File input */
.rntrc-form input[type="file"].rntrc-file-input {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #666;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
}

.rntrc-form input[type="file"].rntrc-file-input:focus {
    border-color: #45895b;
}

/* Error state */
.rntrc-input-error,
.rntrc-form input.rntrc-input-error,
.rntrc-form select.rntrc-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.rntrc-field-error {
    font-size: 12px;
    color: #dc2626;
    min-height: 0;
    line-height: 1.4;
}

/* ── Price Display ── */
.rntrc-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.rntrc-price-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rntrc-price-value {
    font-size: 22px;
    font-weight: 800;
    color: #45895b;
    transition: all 0.3s ease;
}

.rntrc-price-value .rntrc-price-placeholder {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

.rntrc-price-calculated {
    animation: rntrc-price-pop 0.3s ease;
}

@keyframes rntrc-price-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* ── Submit Button ── */
.rntrc-btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #45895b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.rntrc-btn-submit:hover:not(:disabled) {
    background: #3a7a4e;
    transform: translateY(-1px);
}

.rntrc-btn-submit:active:not(:disabled) {
    transform: translateY(0);
    background: #2f6a40;
}

.rntrc-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.rntrc-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rntrc-spinner {
    animation: rntrc-spin 1s linear infinite;
}

@keyframes rntrc-spin {
    to { transform: rotate(360deg); }
}

/* ── Messages ── */
.rntrc-form-message {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.rntrc-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.rntrc-message-success {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}

/* ── Responsive (1 coluna no celular) ── */
@media (max-width: 600px) {
    .rntrc-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rntrc-form input[type="text"],
    .rntrc-form input[type="email"],
    .rntrc-form input[type="tel"],
    .rntrc-form select {
        font-size: 16px; /* previne zoom no iOS */
    }

    .rntrc-price-display {
        flex-direction: column;
        gap: 4px;
    }

    .rntrc-btn-submit {
        padding: 14px 20px;
    }
}
