/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: #f7f7fa;
    color: #222;
    min-height: 100vh;
}

/* Header */
.header {
    background: #1976d2;
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.nav-logo h2 {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
    background: #fff;
    color: #1976d2;
}

/* Hero */
.hero-calc {
    background: #e3f2fd;
    padding: 32px 0 24px 0;
    text-align: center;
}
.hero-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 8px;
}
.hero-subtitle {
    font-size: 1.1em;
    color: #333;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Calculadora */
.calculator-section {
    margin: 32px 0;
}
.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.calculator-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.07);
    padding: 32px 24px;
    margin-bottom: 24px;
}
.form-header h2 {
    color: #1976d2;
    font-size: 1.3em;
    margin-bottom: 4px;
}
.form-header p {
    color: #555;
    font-size: 1em;
    margin-bottom: 18px;
}
.form-section {
    margin-bottom: 22px;
}
.section-title {
    font-size: 1.1em;
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.form-group {
    flex: 1 1 180px;
    min-width: 180px;
    margin-bottom: 12px;
}
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    display: block;
}
.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #bdbdbd;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 2px;
    transition: border 0.2s;
}
.form-input:focus {
    border-color: #1976d2;
    outline: none;
}
.form-input.error {
    border-color: #d32f2f;
    background: #ffebee;
}
.form-input.warning {
    border-color: #ffa000;
    background: #fff8e1;
}
.form-help {
    font-size: 0.92em;
    color: #888;
    margin-top: 2px;
    display: block;
}
.required {
    color: #d32f2f;
    font-weight: bold;
}

/* Cards de tipo */
.tipo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.tipo-card {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 260px;
    background: #f5faff;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    transition: border 0.2s, box-shadow 0.2s;
    position: relative;
}
.tipo-card input[type="radio"] {
    display: none;
}
.tipo-card input[type="radio"]:checked + .tipo-label {
    border-color: #1976d2;
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
.tipo-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border 0.2s, background 0.2s;
}
.tipo-icon {
    font-size: 1.7em;
    color: #1976d2;
    min-width: 36px;
    text-align: center;
}
.tipo-info h4 {
    font-size: 1.08em;
    font-weight: 600;
    color: #1976d2;
}
.tipo-info p {
    font-size: 0.98em;
    color: #444;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn:hover, .btn:focus {
    background: #1565c0;
}
.btn-primary {
    background: #1976d2;
}
.btn-secondary {
    background: #546e7a;
}
.btn-secondary:hover { background: #455a64; }
.btn-sms {
    background: #7b1fa2;
}
.btn-sms:hover { background: #6a1b9a; }
.btn-open {
    background: #fb8c00;
}
.btn-open:hover { background: #f57c00; }
.btn-link {
    background: #00897b;
}
.btn-link:hover { background: #00796b; }
.btn-large {
    font-size: 1.1em;
    padding: 12px 28px;
}
.btn-close {
    background: transparent;
    color: #888;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 18px;
}
.btn-close:hover {
    color: #d32f2f;
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
}

/* Resultado */
.calculator-result {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.07);
    padding: 32px 24px;
    margin-bottom: 24px;
    position: relative;
}
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.result-header h2 {
    color: #1976d2;
    font-size: 1.2em;
    font-weight: 700;
}
.result-content {
    margin-bottom: 18px;
}
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
.sms-actions, .link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
}
.inline-input {
    display: flex;
    align-items: center;
    gap: 8px;
}
.inline-input label {
    font-weight: 500;
    color: #333;
}
.inline-input .form-input {
    width: 220px;
}

/* Evitar que hover genérico sobreponha cores específicas */
.btn.btn-sms:hover { background: #6a1b9a; }
.btn.btn-open:hover { background: #f57c00; }
.btn.btn-link:hover { background: #00796b; }
.btn.btn-whatsapp:hover { background: #1ebe5d; }
.result-breakdown {
    margin-bottom: 12px;
}
.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 1em;
}
.result-label {
    color: #555;
    font-weight: 500;
}
.result-value {
    color: #1976d2;
    font-weight: 600;
}
.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 1.15em;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 10px;
}
.total-label {
    font-size: 1.1em;
}
.total-value {
    font-size: 1.2em;
}

/* Banner de prazo */
.banner-prazo {
    background: #e3f2fd;
    color: #1565c0;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

/* Avisos */
.aviso-container {
    max-width: 600px;
    margin: 18px auto 0 auto;
}
.aviso {
    padding: 10px 16px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
}
.aviso-info {
    background: #e3f2fd;
    color: #1976d2;
}
.aviso-success {
    background: #e8f5e9;
    color: #388e3c;
}
.aviso-warning {
    background: #fff8e1;
    color: #ffa000;
}
.aviso-error {
    background: #ffebee;
    color: #d32f2f;
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}
.whatsapp-link {
    display: flex;
    align-items: center;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
    transition: background 0.2s;
}
.whatsapp-link:hover {
    background: #1ebe5d;
}
.whatsapp-link i {
    font-size: 1.5em;
    margin-right: 8px;
}

/* Responsivo */
@media (max-width: 900px) {
    .container {
        padding: 0 8px;
    }
    .calculator-form, .calculator-result {
        padding: 18px 6px;
    }
    .tipo-grid {
        gap: 10px;
    }
    .tipo-card {
        min-width: 160px;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .tipo-grid {
        flex-direction: column;
    }
    .calculator-form, .calculator-result {
        padding: 10px 2px;
    }
    .whatsapp-float {
        right: 10px;
        bottom: 10px;
    }
}