/* ===== Container Principal ===== */
#arb-container {
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
}

/* ===== Header ===== */
#arb-header {
    text-align: center;
    margin-bottom: 20px;
}
#arb-header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}
.arb-preco {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e00;
    margin: 0;
}
.arb-preco span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}
.arb-sync {
    font-size: 0.75rem;
    color: #999;
    margin-top: 6px;
}

/* ===== Calendário ===== */
#arb-calendario {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
#arb-mes-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
#arb-mes-nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px; height: 32px;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}
#arb-mes-nav button:hover { background: #f5f5f5; }
#arb-mes-label {
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}
#arb-dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: .7rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}
#arb-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
#arb-grid .arb-dia {
    text-align: center;
    padding: 8px 2px;
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
#arb-grid .arb-dia:hover:not(.bloqueado):not(.passado):not(.vazio) {
    background: #fff3f3;
    color: #e00;
}
#arb-grid .arb-dia.bloqueado,
#arb-grid .arb-dia.passado {
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #fafafa;
}
#arb-grid .arb-dia.vazio { cursor: default; }
#arb-grid .arb-dia.selecionado-inicio,
#arb-grid .arb-dia.selecionado-fim {
    background: #e00;
    color: #fff;
    font-weight: 700;
}
#arb-grid .arb-dia.no-range {
    background: #ffe0e0;
    color: #c00;
    border-radius: 0;
}
#arb-grid .arb-dia.hoje {
    border: 2px solid #e00;
}

/* ===== Resumo ===== */
#arb-resumo {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
}
.arb-resumo-linha {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .9rem;
    border-bottom: 1px solid #f5f5f5;
}
.arb-resumo-linha:last-of-type { border-bottom: none; }
.arb-total { font-size: 1.05rem; font-weight: 700; color: #c00; }
#arb-btn-reservar {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: #e00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
#arb-btn-reservar:hover { background: #c00; }

/* ===== Formulário ===== */
#arb-form {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}
#arb-form h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}
.arb-campo {
    margin-bottom: 12px;
}
.arb-campo label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}
.arb-campo input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: .9rem;
    box-sizing: border-box;
    transition: border .2s;
}
.arb-campo input:focus {
    outline: none;
    border-color: #e00;
}
#arb-card-element {
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}
#arb-card-errors {
    color: #e00;
    font-size: .82rem;
    min-height: 18px;
    margin-bottom: 10px;
}
.arb-form-btns {
    display: flex;
    gap: 10px;
}
#arb-btn-voltar {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
}
#arb-btn-pagar {
    flex: 2;
    padding: 12px;
    background: #e00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
#arb-btn-pagar:hover { background: #c00; }
#arb-btn-pagar:disabled { background: #999; cursor: not-allowed; }

/* ===== Sucesso ===== */
#arb-sucesso {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 16px;
}
.arb-sucesso-icone { font-size: 3rem; margin-bottom: 12px; }
#arb-sucesso h3 { color: #2a7a2a; margin: 0 0 8px; }

/* ===== Loading ===== */
#arb-loading {
    text-align: center;
    padding: 30px;
}
.arb-spinner {
    width: 36px; height: 36px;
    border: 4px solid #eee;
    border-top-color: #e00;
    border-radius: 50%;
    animation: arb-spin .7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes arb-spin { to { transform: rotate(360deg); } }

/* ===== Erro ===== */
#arb-erro {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #c00;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    font-size: .9rem;
    text-align: center;
}
