/* =============================================
   Voda Payments Application Form
   Theme: Dark with purple accents
   ============================================= */

:root {
    --voda-bg: #0a0a0f;
    --voda-surface: #111118;
    --voda-surface-2: #1a1a25;
    --voda-surface-3: #222233;
    --voda-border: #2a2a3a;
    --voda-border-focus: #6C3CE1;
    --voda-purple: #6C3CE1;
    --voda-purple-light: #8B5CF6;
    --voda-purple-glow: rgba(108, 60, 225, 0.25);
    --voda-purple-subtle: rgba(108, 60, 225, 0.08);
    --voda-text: #f0f0f5;
    --voda-text-muted: #8888a0;
    --voda-text-dim: #555570;
    --voda-success: #22c55e;
    --voda-error: #ef4444;
    --voda-error-glow: rgba(239, 68, 68, 0.25);
    --voda-error-subtle: rgba(239, 68, 68, 0.08);
    --voda-radius: 10px;
    --voda-radius-sm: 6px;
    --voda-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset within plugin scope */
.voda-app-wrapper,
.voda-app-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.voda-app-wrapper {
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--voda-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.voda-app-container {
    max-width: 860px;
    margin: 0 auto;
}

/* Progress Bar */
.voda-progress {
    margin-bottom: 40px;
}

.voda-progress-bar {
    height: 4px;
    background: var(--voda-surface-3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.voda-progress-fill {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--voda-purple), var(--voda-purple-light));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.voda-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.voda-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.voda-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--voda-surface-2);
    border: 2px solid var(--voda-border);
    transition: all var(--voda-transition);
    position: relative;
}

.voda-step-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--voda-text-dim);
    transition: all var(--voda-transition);
}

.voda-step-check {
    display: none;
    width: 16px;
    height: 16px;
    color: #fff;
}

.voda-step.active .voda-step-circle {
    background: var(--voda-purple);
    border-color: var(--voda-purple);
    box-shadow: 0 0 20px var(--voda-purple-glow);
}

.voda-step.active .voda-step-num {
    color: #fff;
}

.voda-step.completed .voda-step-circle {
    background: var(--voda-success);
    border-color: var(--voda-success);
}

.voda-step.completed .voda-step-num {
    display: none;
}

.voda-step.completed .voda-step-check {
    display: block;
}

.voda-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--voda-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--voda-transition);
}

.voda-step.active .voda-step-label,
.voda-step.completed .voda-step-label {
    color: var(--voda-text);
}

/* Form Steps */
.voda-form-step {
    display: none;
    animation: vodaFadeIn 0.4s ease-out;
}

.voda-form-step.active {
    display: block;
}

@keyframes vodaFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Titles */
.voda-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--voda-border);
}

.voda-section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--voda-text);
}

.voda-section-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--voda-radius);
    background: var(--voda-purple-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voda-section-icon svg {
    width: 20px;
    height: 20px;
    color: var(--voda-purple-light);
}

.voda-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--voda-border);
}

.voda-section-divider h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--voda-purple-light);
}

/* Form Rows & Fields */
.voda-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.voda-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.voda-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voda-field-full {
    grid-column: 1 / -1;
}

.voda-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--voda-text-muted);
    letter-spacing: 0.01em;
}

.voda-field label .req {
    color: var(--voda-purple-light);
}

.voda-field input,
.voda-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--voda-text);
    background: var(--voda-surface-2);
    border: 1.5px solid var(--voda-border);
    border-radius: var(--voda-radius-sm);
    outline: none;
    transition: all var(--voda-transition);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.voda-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.voda-field input::placeholder {
    color: var(--voda-text-dim);
}

.voda-field input:focus,
.voda-field select:focus {
    border-color: var(--voda-purple);
    background: var(--voda-surface-3);
    box-shadow: 0 0 0 3px var(--voda-purple-glow);
}

.voda-field input.error,
.voda-field select.error {
    border-color: var(--voda-error) !important;
    box-shadow: 0 0 0 3px var(--voda-error-glow) !important;
}

.voda-field input.valid,
.voda-field select.valid {
    border-color: var(--voda-success);
}

.voda-field .field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--voda-error);
    margin-top: 6px;
    animation: vodaSlideDown 0.25s ease-out;
}

.voda-field .field-error svg {
    flex-shrink: 0;
    color: var(--voda-error);
}

@keyframes vodaSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.voda-step-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--voda-error-subtle);
    border: 1px solid var(--voda-error);
    border-radius: var(--voda-radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--voda-error);
    animation: vodaSlideDown 0.3s ease-out;
}

.voda-step-error-banner svg {
    flex-shrink: 0;
    color: var(--voda-error);
}

.upload-error {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--voda-error);
    margin-top: 8px;
    animation: vodaSlideDown 0.25s ease-out;
}

.upload-error svg {
    flex-shrink: 0;
}

/* Navigation Buttons */
.voda-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--voda-border);
}

.voda-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--voda-radius);
    cursor: pointer;
    transition: all var(--voda-transition);
    font-family: inherit;
    text-decoration: none;
}

.voda-btn svg {
    width: 18px;
    height: 18px;
}

.voda-btn-next,
.voda-btn-submit {
    background: linear-gradient(135deg, var(--voda-purple), var(--voda-purple-light)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px var(--voda-purple-glow) !important;
}

.voda-btn-next:hover,
.voda-btn-submit:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 6px 25px var(--voda-purple-glow) !important;
}

.voda-btn-next:active,
.voda-btn-submit:active {
    transform: translateY(0);
}

.voda-btn-back {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.voda-btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.voda-btn-submit {
    min-width: 200px;
    justify-content: center;
}

.voda-btn-submit.loading .voda-btn-text {
    display: none;
}

.voda-btn-submit .voda-btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.voda-btn-submit.loading .voda-btn-loader {
    display: inline-flex;
}

.voda-btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.voda-spinner {
    width: 18px;
    height: 18px;
    animation: vodaSpin 0.8s linear infinite;
}

@keyframes vodaSpin {
    to { transform: rotate(360deg); }
}

/* Upload Area */
.voda-upload-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--voda-purple-subtle);
    border: 1px solid rgba(108, 60, 225, 0.2);
    border-radius: var(--voda-radius);
    padding: 14px 18px;
    margin-bottom: 28px;
}

.voda-upload-notice svg {
    width: 20px;
    height: 20px;
    color: var(--voda-purple-light);
    flex-shrink: 0;
    margin-top: 1px;
}

.voda-upload-notice p {
    font-size: 13px;
    color: var(--voda-text-muted);
    line-height: 1.5;
}

.voda-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.voda-upload-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--voda-text-muted);
    margin-bottom: 8px;
}

.voda-upload-field label .req {
    color: var(--voda-purple-light);
}

.voda-dropzone {
    position: relative;
    border: 2px dashed var(--voda-border);
    border-radius: var(--voda-radius);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--voda-transition);
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.voda-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.voda-dropzone:hover,
.voda-dropzone:focus-within {
    border-color: var(--voda-purple);
    background: var(--voda-purple-subtle);
}

.voda-dropzone.dragover {
    border-color: var(--voda-purple-light);
    background: rgba(108, 60, 225, 0.12);
    transform: scale(1.01);
}

.voda-dropzone.has-files {
    border-style: solid;
    border-color: var(--voda-success);
    background: rgba(34, 197, 94, 0.05);
}

.voda-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.voda-dropzone-content svg {
    width: 28px;
    height: 28px;
    color: var(--voda-text-dim);
    margin-bottom: 4px;
}

.voda-dropzone-text {
    font-size: 13px;
    color: var(--voda-text-muted);
}

.voda-dropzone-text strong {
    color: var(--voda-purple-light);
}

.voda-dropzone-hint {
    font-size: 11px;
    color: var(--voda-text-dim);
}

.voda-dropzone.has-files .voda-dropzone-content {
    display: none;
}

.voda-file-list {
    width: 100%;
    pointer-events: none;
}

.voda-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--voda-text);
}

.voda-file-item svg {
    width: 14px;
    height: 14px;
    color: var(--voda-success);
    flex-shrink: 0;
}

.voda-file-item .file-size {
    color: var(--voda-text-dim);
    margin-left: auto;
}

.voda-dropzone.error {
    border-color: var(--voda-error);
    background: var(--voda-error-subtle);
}

/* Success State */
.voda-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: vodaFadeIn 0.5s ease-out;
}

.voda-success.active {
    display: block;
}

.voda-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: vodaPulse 2s ease-in-out infinite;
}

.voda-success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--voda-success);
}

@keyframes vodaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
}

.voda-success h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, var(--voda-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voda-success p {
    color: var(--voda-text-muted);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 8px;
}

.voda-success-contact {
    margin-top: 20px !important;
    color: var(--voda-text) !important;
}

.voda-success-contact strong {
    color: var(--voda-purple-light);
}

/* Errors */
.voda-errors {
    display: none;
    background: var(--voda-error-subtle);
    border: 1px solid var(--voda-error-glow);
    border-radius: var(--voda-radius);
    padding: 16px 20px;
    margin-top: 16px;
}

.voda-errors.active {
    display: block;
    animation: vodaShake 0.4s ease-out;
}

@keyframes vodaShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.voda-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.voda-errors li {
    font-size: 13px;
    color: var(--voda-error);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voda-errors li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--voda-error);
    flex-shrink: 0;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    .voda-app-wrapper {
        padding: 20px 12px;
    }

    .voda-app-title {
        font-size: 24px;
    }

    .voda-app-subtitle {
        font-size: 13px;
    }

    .voda-step-label {
        font-size: 10px;
    }

    .voda-step-circle {
        width: 34px;
        height: 34px;
    }

    .voda-row,
    .voda-row-3 {
        grid-template-columns: 1fr;
    }

    .voda-upload-grid {
        grid-template-columns: 1fr;
    }

    .voda-section-title h2 {
        font-size: 18px;
    }

    .voda-section-divider h3 {
        font-size: 15px;
    }

    .voda-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .voda-form-nav {
        gap: 12px;
    }

    .voda-btn-submit {
        min-width: 160px;
    }

    .voda-success h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .voda-app-title {
        font-size: 20px;
    }

    .voda-step-label {
        font-size: 9px;
    }

    .voda-dropzone {
        padding: 18px 12px;
        min-height: 100px;
    }

    .voda-form-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .voda-btn {
        width: 100%;
        justify-content: center;
    }
}
