/* Container geral */
.ctb-form-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.ctb-form-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #CC0000;
    text-align: center;
    margin-bottom: 4px;
}

.ctb-form-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Grid principal de cartões */
.ctb-form-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cartão individual */
.ctb-form-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.ctb-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* Grid interno de campos (2 colunas) */
.ctb-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Campo individual */
.ctb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ctb-field label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

.ctb-field input,
.ctb-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: 0.2s;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}

.ctb-field input:focus,
.ctb-field select:focus {
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.08);
}

.ctb-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Campo arquivo */
.ctb-field input[type="file"] {
    padding: 10px 14px;
    border-style: dashed;
    background: #fff;
    cursor: pointer;
}

.ctb-field input[type="file"]:hover {
    border-color: #CC0000;
    background: #fff5f5;
}

/* Cartão do checkbox */
.ctb-checkbox-card {
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 16px 24px;
}

.ctb-checkbox-card label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

/* Botão envio */
.ctb-btn-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px 32px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 12px 28px rgba(204, 0, 0, 0.35);
    margin-top: 28px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.ctb-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(204, 0, 0, 0.5);
}

.ctb-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens de retorno */
.ctb-msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.ctb-msg-success .ctb-protocolo {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    margin: 12px 0;
}

.ctb-msg-error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.ctb-whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
    margin-top: 12px;
}

.ctb-whatsapp-btn:hover {
    background: #1da851;
    color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .ctb-form-wrapper {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .ctb-form-title {
        font-size: 1.4rem;
    }
    .ctb-card-grid {
        grid-template-columns: 1fr;
    }
    .ctb-form-card {
        padding: 18px;
    }
    .ctb-btn-submit {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}