/* --- Variáveis de Identidade NextTap (Mantidas para o Formulário) --- */
:root {
    --primary: #22c55e;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --error: #ef4444;
    --input-bg: #0f172a;
}

/* --- Container do Formulário --- */
.order-container {
    width: 100%;
    max-width: 600px; /* Ajustado para caber melhor na coluna da seção */
    margin: 0 auto;
}

/* Estilo do cabeçalho caso seja usado dentro da seção */
.order-header {
    text-align: center;
    margin-bottom: 30px;
}

.order-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: "Signika Negative", sans-serif;
    color: var(--text-main);
}

/* --- Estilização do Formulário (O "Card") --- */
.order-form {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-family: "Signika Negative", sans-serif;
}

/* --- Inputs e Seletores --- */
.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    text-align: left; /* Garante alinhamento à esquerda mesmo se o pai centralizar */
}

.input-group label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

.input-group input, 
.input-group select,
.form-section select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select option {
    background-color: var(--input-bg);
    color: white;
}

select option:disabled {
    color: var(--text-dim);
}

.input-group input:focus, 
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.feedback-msg {
    font-size: 0.8rem;
    margin-top: 4px;
    height: 1rem;
    font-weight: 600;
}

/* --- Banner de Promoção --- */
.promo-banner {
    background: rgba(34, 197, 94, 0.15); /* Utiliza o verde primário da variável com transparência */
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.05rem;
    font-family: "Signika Negative", sans-serif;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* --- Grid de Seleção de Produtos --- */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.produto-card {
    background: var(--input-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.produto-card:hover {
    transform: translateY(-3px);
    border-color: #475569;
}

.produto-card.selected {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.produto-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.produto-card h3 {
    font-size: 0.9rem;
    color: var(--text-main);
}

.produto-card .preco {
    color: var(--primary);
    font-weight: bold;
}

.qty-group {
    max-width: 120px;
}

/* --- Resumo de Valores --- */
.order-summary {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.summary-line.total {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Botão de Ação --- */
.btn-order {
    width: 100%;
    background: var(--primary);
    color: #0f172a;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "Signika Negative", sans-serif;
}

.btn-order:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-order:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- ESTILIZAÇÃO PROFISSIONAL DO DROPDOWN DE PAÍSES --- */
/* Container da lista (O Dropdown) */
.iti__country-list {
    background-color: #020617 !important; /* Cor mais escura que o card, criando profundidade */
    border: 1px solid #1e293b !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important; /* Texto claro para contraste */
    max-height: 250px !important;
    margin-top: 5px !important;
    overflow-x: hidden;
}

/* Cada item da lista */
.iti__country {
    padding: 10px 14px !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

/* Hover: Efeito ao passar o mouse */
.iti__country:hover {
    background-color: #1e293b !important; /* Destaque sutil */
}

/* Item selecionado (O país atual) */
.iti__country--highlighted {
    background-color: #22c55e !important; /* Cor primária da marca */
    color: #ffffff !important;
}

/* Ajuste do nome do país e do código */
.iti__country-name {
    margin-right: 8px !important;
    font-size: 14px !important;
}

.iti__dial-code {
    color: #94a3b8 !important; /* Código cinza para não competir com o nome */
    font-size: 13px !important;
}

/* Ajuste do input de busca (se o plugin permitir) */
.iti__search-input {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: white !important;
    padding: 8px !important;
    margin: 5px !important;
    border-radius: 4px !important;
}

/* Correção de Layout: Força o container e o input interno */
.iti {
    width: 100% !important;
    display: block !important;
    margin-bottom: 10px;
}

/* O padding-left precisa ser maior para acomodar a bandeira e o +55 */
.iti__tel-input {
    width: 100% !important;
    padding-left: 90px !important; /* Aumentado para evitar sobreposição */
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Garante que o dropdown de países não seja afetado pelo padding global */
.iti__selected-flag {
    padding-left: 12px !important;
}

/* --- Responsividade Interna --- */
@media (max-width: 600px) {
    .order-form {
        padding: 20px;
    }
    .produtos-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 320px) {
    .nt-image {
        width: 113%;
    }
}