/* ================================================================
   DriveWeb Tools – Frontend CSS (pure CSS, sem Bootstrap)
   ================================================================ */

/* ── BRIEFING FORM ── */
.dwt-briefing-wrap {
    max-width: 700px;
    margin: 36px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    box-sizing: border-box;
}
.dwt-briefing-wrap * { box-sizing: border-box; }

.dwt-briefing-wrap .dwt-b-header {
    background: linear-gradient(135deg, #0f3cc9 0%, #1d5cf8 60%, #2d6bff 100%) !important;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px 22px;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}
.dwt-briefing-wrap .dwt-b-header::after {
    content: '';
    position: absolute;
    bottom: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.dwt-briefing-wrap .dwt-b-header .dwt-b-logo {
    margin-bottom: 12px;
    display: block;
    line-height: 1;
    color: #ffffff !important;
}
.dwt-briefing-wrap .dwt-b-header .dwt-b-logo svg {
    height: 24px;
    width: auto;
    display: block;
    color: #ffffff !important;
}
.dwt-briefing-wrap .dwt-b-header .dwt-b-logo svg * {
    fill: #ffffff !important;
    stroke: none !important;
}
.dwt-briefing-wrap .dwt-b-header h2 {
    margin: 0 0 6px 0;
    font-size: clamp(17px, 4vw, 22px);
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.25;
}
.dwt-briefing-wrap .dwt-b-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.85) !important;
    line-height: 1.55;
    max-width: 520px;
}

.dwt-b-body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 24px 28px 28px;
}

.dwt-b-success, .dwt-b-error {
    padding: 28px 24px; border-radius: 10px; margin-bottom: 20px; font-size: 14px;
}
.dwt-b-success { background: #f0fdf4; color: #15803d; border: 2px solid #86efac; }
.dwt-b-error   { background: #fef2f2; color: #991b1b; border: 2px solid #fecaca; padding: 14px 18px; font-weight: 600; }

.dwt-b-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 20px;
    background: #fff;
}
.dwt-b-section-title {
    font-size: 15px; font-weight: 700; color: #111827;
    margin: 0 0 18px 0; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6;
}

/* Grid */
.dwt-b-row-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dwt-b-row-4   { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dwt-b-row-mix { display: grid; grid-template-columns: 42% 1fr; gap: 16px; margin-bottom: 16px; }

.dwt-b-group { margin-bottom: 16px; }
.dwt-b-group:last-child { margin-bottom: 0; }

.dwt-b-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.dwt-b-label small { font-weight: 400; color: #6b7280; font-size: 12px; }
.dwt-req { color: #ef4444; }

.dwt-b-input, .dwt-b-select, .dwt-b-textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db; border-radius: 6px;
    font-size: 14px; color: #111827; background: #fff; font-family: inherit;
    transition: border-color .18s, box-shadow .18s; outline: none;
    appearance: none; -webkit-appearance: none;
}
.dwt-b-input:focus, .dwt-b-select:focus, .dwt-b-textarea:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.dwt-b-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer;
}
.dwt-b-textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

.dwt-b-checks-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 4px; }
.dwt-b-checks-1 { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.dwt-b-radios   { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.dwt-b-radios-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }

.dwt-b-check-item, .dwt-b-radio-item {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 13px; color: #374151; line-height: 1.4;
}
.dwt-b-check-item input, .dwt-b-radio-item input {
    width: 15px; height: 15px; min-width: 15px; accent-color: #2563eb; cursor: pointer; margin: 0;
}

.dwt-b-scale { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dwt-b-scale-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; font-weight: 600; color: #374151; }
.dwt-b-scale-item input { width: 18px; height: 18px; accent-color: #2563eb; cursor: pointer; }
.dwt-b-scale-note { font-size: 12px; color: #9ca3af; margin-left: 8px; align-self: center; }

.dwt-b-honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.dwt-b-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 22px; gap: 16px; flex-wrap: wrap;
}
.dwt-b-note { font-size: 12px; color: #6b7280; }
.dwt-b-submit {
    background: #2563eb; color: #fff; border: none; border-radius: 8px;
    padding: 12px 32px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .18s, transform .1s; white-space: nowrap; font-family: inherit;
}
.dwt-b-submit:hover  { background: #1d4ed8; transform: translateY(-1px); }
.dwt-b-submit:active { transform: translateY(0); }

/* ── LEADS FORM ── */
.dwt-form-wrap {
    max-width: 700px; margin: 36px auto; background: #fff; border-radius: 12px;
    box-shadow: 0 4px 24px rgba(37,99,235,.10); overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.dwt-form-wrap * { box-sizing: border-box; }
.dwt-form-header { background: linear-gradient(135deg, #1348c8, #6610f2); padding: 28px 32px; color: #fff; }
.dwt-form-header h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #fff; }
.dwt-form-header p  { margin: 0; font-size: 14px; opacity: .85; color: #fff; }
#dwt-form-container { padding: 28px 32px; }
.dwt-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dwt-form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.dwt-form-group label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.dwt-required { color: #ef4444; }
.dwt-form-group input, .dwt-form-group select, .dwt-form-group textarea {
    border: 1.5px solid #d1d5db; border-radius: 6px; padding: 9px 12px; font-size: 14px;
    color: #111827; background: #f9fafb; transition: border-color .18s, box-shadow .18s;
    outline: none; font-family: inherit; width: 100%; appearance: none; -webkit-appearance: none;
}
.dwt-form-group input:focus, .dwt-form-group select:focus, .dwt-form-group textarea:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff;
}
.dwt-form-group input.dwt-has-error, .dwt-form-group select.dwt-has-error, .dwt-form-group textarea.dwt-has-error { border-color: #ef4444; }
.dwt-form-group textarea { resize: vertical; min-height: 100px; }
.dwt-rgpd-group { margin-top: 4px; }
.dwt-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: #374151; line-height: 1.5; }
.dwt-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; margin-top: 2px; cursor: pointer; accent-color: #2563eb; }
.dwt-checkbox-label a { color: #2563eb; }
.dwt-field-error { font-size: 12px; color: #ef4444; margin-top: 4px; min-height: 16px; display: block; }
.dwt-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 8px; margin: 0 0 20px 0; font-size: 14px; }
.dwt-alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.dwt-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.dwt-icon { font-size: 20px; }
.dwt-recaptcha-wrap { margin-bottom: 18px; }
.dwt-btn-submit {
    width: 100%; padding: 13px 20px; background: linear-gradient(135deg, #1348c8, #2563eb);
    color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: opacity .2s, transform .1s;
    display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit;
}
.dwt-btn-submit:hover  { opacity: .92; transform: translateY(-1px); }
.dwt-btn-submit:active { transform: translateY(0); }
.dwt-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.dwt-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dwt-spin .7s linear infinite; }
@keyframes dwt-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
    .dwt-b-row-2, .dwt-b-checks-2, .dwt-b-radios-h { grid-template-columns: 1fr; }
    .dwt-b-row-4   { grid-template-columns: 1fr 1fr; }
    .dwt-b-row-mix { grid-template-columns: 1fr; }
    .dwt-b-footer  { flex-direction: column; align-items: stretch; }
    .dwt-b-submit  { width: 100%; text-align: center; }
    .dwt-b-header  { padding: 20px; }
    .dwt-b-body    { padding: 16px; }
    .dwt-two-cols  { grid-template-columns: 1fr; }
    .dwt-form-header, #dwt-form-container { padding: 20px; }
}

/* ── CURRENCY SELECTOR ── */
.dwt-currency-step {
    text-align: center;
    padding: 12px 0 28px;
}
.dwt-currency-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.dwt-currency-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 24px;
}
.dwt-currency-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.dwt-currency-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, transform .15s;
    font-family: inherit;
}
.dwt-currency-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,.14);
    transform: translateY(-2px);
}
.dwt-currency-card:active { transform: translateY(0); }
.dwt-currency-flag   { font-size: 32px; line-height: 1; }
.dwt-currency-symbol { font-size: 22px; font-weight: 800; color: #111827; }
.dwt-currency-name   { font-size: 12px; font-weight: 600; color: #6b7280; }

/* Badge moeda seleccionada */
.dwt-currency-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e40af;
    flex-wrap: wrap;
    gap: 8px;
}
.dwt-change-currency-btn {
    background: none;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #1d4ed8;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background .15s;
}
.dwt-change-currency-btn:hover { background: #dbeafe; }

@media (max-width: 480px) {
    .dwt-currency-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .dwt-currency-card  { padding: 16px 8px; }
    .dwt-currency-flag  { font-size: 26px; }
    .dwt-currency-symbol{ font-size: 18px; }
    .dwt-currency-name  { font-size: 11px; }
}
