/* VDP Registration Form - Scoped Styles */
.vdp-registration { max-width: 720px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.6; color: #1a1a2e; position: relative; }
.vdp-registration *, .vdp-registration *::before, .vdp-registration *::after { box-sizing: border-box; }

/* Progress Bar */
.vdp-progress { display: flex; align-items: center; gap: 0; margin-bottom: 36px; padding: 24px 28px; background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%); border-radius: 14px; border: 1px solid #dce3ed; }
.vdp-progress-step { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #8b95a5; white-space: nowrap; transition: all 0.3s ease; }
.vdp-progress-step.active { color: #AC1317; font-weight: 700; }
.vdp-progress-step.completed { color: #1b7a3d; }
.vdp-step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #d0d5dd; color: #6c757d; font-size: 15px; font-weight: 700; transition: all 0.35s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.vdp-progress-step.active .vdp-step-number { background: #AC1317; color: #fff; box-shadow: 0 3px 10px rgba(172,19,23,0.35); transform: scale(1.08); }
.vdp-progress-step.completed .vdp-step-number { background: #28a745; color: #fff; box-shadow: 0 2px 8px rgba(40,167,69,0.3); }
.vdp-progress-bar { flex: 1; height: 4px; background: #d0d5dd; border-radius: 4px; overflow: hidden; margin: 0 16px; }
.vdp-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #AC1317, #d41920); transition: width 0.5s ease; border-radius: 4px; }

/* Fieldsets */
.vdp-fieldset { border: none; padding: 0; margin: 0 0 32px 0; }
.vdp-legend { font-size: 24px; font-weight: 800; color: #AC1317; padding: 0 0 14px 14px; margin-bottom: 20px; border-bottom: 2px solid #e2e7ef; border-left: 4px solid #AC1317; display: block; width: 100%; letter-spacing: -0.3px; line-height: 1.2; }

/* Form Grid */
.vdp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vdp-col-full { grid-column: 1 / -1; }

/* Fields */
.vdp-field { margin-bottom: 0; }
.vdp-field label { display: block; font-size: 14px; font-weight: 500; color: #495057; margin-bottom: 6px; }
.vdp-required { color: #dc3545; }
.vdp-honeypot { position: absolute; left: -9999px; top: -9999px; }
.vdp-registration input[type="text"],
.vdp-registration input[type="email"],
.vdp-registration input[type="tel"],
.vdp-registration select {
    width: 100%; padding: 11px 14px; border: 1.5px solid #ced4da; border-radius: 8px;
    font-size: 15px; font-family: inherit; color: #212529; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vdp-registration input:focus, .vdp-registration select:focus {
    outline: none; border-color: #AC1317; box-shadow: 0 0 0 3px rgba(172,19,23,0.12);
}
.vdp-registration input.vdp-invalid, .vdp-registration select.vdp-invalid {
    border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

/* Error Messages */
.vdp-error { font-size: 13px; color: #dc3545; margin-top: 4px; min-height: 0; transition: all 0.2s; }
.vdp-error:empty { display: none; }
.vdp-global-error { padding: 14px 18px; background: #fff5f5; border: 1px solid #fed7d7; border-radius: 8px; color: #c53030; margin-top: 16px; font-size: 14px; }

/* Checkboxes & Radios */
.vdp-checkbox-group, .vdp-radio-group { display: flex; flex-direction: column; gap: 10px; }
.vdp-checkbox-label, .vdp-radio-label {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
    background: #f8f9fa; border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.vdp-checkbox-label:hover, .vdp-radio-label:hover { background: #e9ecef; }
.vdp-registration input[type="checkbox"], .vdp-registration input[type="radio"] {
    width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #AC1317;
}
.vdp-checkbox-text { font-size: 14px; line-height: 1.5; }
.vdp-hint { color: #6c757d; font-size: 13px; font-style: italic; }
.vdp-consents .vdp-checkbox-label { background: #fffbeb; }
.vdp-consents .vdp-checkbox-label:hover { background: #fef3c7; }
.vdp-consents a { color: #AC1317; text-decoration: underline; }

/* Radio group – vertical within time blocks */
.vdp-radio-group { display: flex; flex-direction: column; gap: 10px; }

/* Time Block Container */
.vdp-time-block { margin-top: 18px; padding: 18px 20px; background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f8 100%); border: 1.5px solid #dce3ed; border-radius: 12px; }
.vdp-time-block + .vdp-time-block { margin-top: 14px; }
.vdp-time-block-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #dce3ed; }
.vdp-time-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 6px; background: #AC1317; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.vdp-time-range { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.vdp-time-hint { font-size: 13px; color: #6c757d; font-style: italic; margin-left: auto; }
.vdp-radio-label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 8px; cursor: pointer; transition: background 0.15s, border-color 0.15s; border: 1.5px solid transparent; }
.vdp-radio-label:hover { background: #e9ecef; }
.vdp-radio-label:has(input:checked) { background: #fef2f2; border-color: rgba(172,19,23,0.25); }
.vdp-radio-none { opacity: 0.75; }
.vdp-radio-none:has(input:checked) { opacity: 1; background: #f8f9fa; border-color: #ced4da; }

/* Price Display */
.vdp-price-display { margin-top: 12px; padding: 14px 18px; background: #e8f5e9; border-radius: 8px; font-weight: 600; color: #2e7d32; border: 1px solid #c8e6c9; }

/* Buttons */
.vdp-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.vdp-btn { padding: 13px 28px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.vdp-btn-primary { background: #AC1317; color: #fff; }
.vdp-btn-primary:hover { background: #8a0f13; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(172,19,23,0.3); }
.vdp-btn-outline { background: #fff; color: #495057; border: 1.5px solid #ced4da; }
.vdp-btn-outline:hover { border-color: #AC1317; color: #AC1317; }
.vdp-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.vdp-btn-next { margin-left: auto; }

/* Success */
.vdp-success { text-align: center; padding: 48px 24px; }
.vdp-success-icon { width: 72px; height: 72px; margin: 0 auto 20px; background: #28a745; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff; animation: vdpSuccessPop 0.4s ease; }
.vdp-success-title { font-size: 22px; font-weight: 700; color: #AC1317; margin-bottom: 8px; }
.vdp-success-text { color: #495057; font-size: 15px; }
.vdp-success-number { margin-top: 16px; padding: 10px 20px; background: #f0f7ff; border-radius: 8px; font-family: monospace; font-size: 16px; color: #AC1317; font-weight: 600; display: inline-block; }
@keyframes vdpSuccessPop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Loading */
.vdp-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; z-index: 100; }
.vdp-spinner { width: 40px; height: 40px; border: 4px solid #e9ecef; border-top-color: #AC1317; border-radius: 50%; animation: vdpSpin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes vdpSpin { to { transform: rotate(360deg); } }
.vdp-loading p { color: #495057; font-size: 15px; }
.vdp-hidden { display: none; }

/* Error banner */
.vdp-error-banner { padding: 16px 20px; background: #fff5f5; border: 1px solid #fed7d7; border-radius: 8px; color: #c53030; text-align: center; }

/* Responsive */
@media (max-width: 640px) {
    .vdp-form-grid { grid-template-columns: 1fr; }
    .vdp-progress { flex-direction: column; gap: 8px; }
    .vdp-progress-bar { width: 100%; }
    .vdp-actions { flex-direction: column; }
    .vdp-btn { width: 100%; justify-content: center; }
    .vdp-btn-next { margin-left: 0; }
    .vdp-time-block-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .vdp-time-hint { margin-left: 0; }
    .vdp-time-block { padding: 14px; }
}
