/* Google/Microsoft Style Form Design */
* {
    font-family: 'Giga Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-image: url("/assets/Bg/bg1.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #1a73e8;
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 110, 248, 0.25);
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* Header/Brand Section */
.container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.onboarding-brand {
    padding: 24px 0 32px;
}

.onboarding-brand img {
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.onboarding-brand h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.onboarding-brand p {
    font-size: 15px;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Form Card - Google Forms Style */
.wizard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(218, 220, 224, 0.8);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    overflow: hidden;
}

.wizard-card .card-body {
    padding: 40px 48px;
}

@media (max-width: 768px) {
    .wizard-card .card-body {
        padding: 24px 20px;
    }
}

/* Wizard Header */
.wizard-head {
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.wizard-head h3 {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.wizard-head p {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wizard-progress {
    height: 8px;
    background-color: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.wizard-progress .progress-bar {
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    font-size: 0;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Wizard Steps - Show only active step */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
    letter-spacing: -0.2px;
}

/* Form Labels - Google Style */
.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.1px;
    line-height: 1.4;
}

/* Form Controls - Material Design Style */
.form-control,
.form-select {
    font-size: 14px;
    color: #202124;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px 14px;
    transition: all 0.2s ease;
    height: auto;
    line-height: 1.5;
}

/* Inline validation errors */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #d93025;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.15);
}

.custom-invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #d93025;
}

.form-control:focus,
.form-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: #80868b;
}

.form-control::placeholder {
    color: #9aa0a6;
    font-weight: 400;
}

.form-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 fill='%235f6368' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    appearance: none;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Form Row Spacing */
.wizard-step .row {
    margin-bottom: 0;
}

.wizard-step .row > [class*="col-"] {
    margin-bottom: 20px;
}

/* Director Block */
.director-block {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.director-block:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Vendor Chips/Tags Input */
.vendor-input-container {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    min-height: 60px;
    transition: all 0.2s ease;
}

.vendor-input-container:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.vendor-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 32px;
}

.vendor-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f0fe;
    color: #1a73e8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #cbd5e0;
    transition: all 0.2s ease;
    animation: chipAppear 0.2s ease;
}

@keyframes chipAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vendor-chip:hover {
    background: #d2e3fc;
    border-color: #aecbfa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.15);
}

.vendor-chip-remove {
    background: transparent;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}

.vendor-chip-remove:hover {
    background: #1a73e8;
    color: #ffffff;
    transform: scale(1.1);
}

.vendor-input-wrapper {
    display: flex;
    align-items: center;
}

.vendor-input-wrapper .form-control {
    flex: 1;
    border: none;
    padding: 8px 0;
    background: transparent;
    box-shadow: none;
}

.vendor-input-wrapper .form-control:focus {
    box-shadow: none;
    border: none;
}

.vendor-input-wrapper #addVendorBtn {
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.vendor-input-wrapper #addVendorBtn svg {
    margin-right: 4px;
}

.vendor-input-wrapper #addVendorBtn:hover {
    background-color: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

/* Download Sample Button */
.download-sample-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #1a73e8;
    color: #1a73e8;
    background: #ffffff;
}

.download-sample-btn:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.15);
    text-decoration: none;
}

.download-sample-btn svg {
    margin-right: 4px;
}

/* File Preview */
.file-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.file-preview-item {
    border: 1px solid #e8eaed;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
}

.file-preview-item:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e8eaed;
}

.file-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #5f6368;
    margin-top: 2px;
}

/* Buttons - Material Design Style */
.btn {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0.1px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #1a73e8;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1557b0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.btn-success {
    background-color: #34a853;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #2d8e47;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background-color: #ffffff;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
}

.btn-outline-primary {
    background-color: #ffffff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn-outline-primary:hover {
    background-color: #e8f0fe;
    border-color: #1a73e8;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Wizard Actions */
.wizard-actions {
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid #e8eaed;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: transparent;
    z-index: 10;
}

.wizard-actions > div {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Checkbox & Radio - Material Style */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #5f6368;
    border-radius: 2px;
    margin-top: 2px;
}

.form-check-input:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.form-check-label {
    font-size: 14px;
    color: #202124;
    margin-left: 8px;
    font-weight: 400;
}

/* Alert Box */
#alertBox {
    margin-bottom: 20px;
}

.alert {
    border-radius: 4px;
    font-size: 14px;
    padding: 12px 16px;
    border: none;
}

.alert-success {
    background-color: #e6f4ea;
    color: #137333;
}

.alert-danger {
    background-color: #fce8e6;
    color: #c5221f;
}

/* Responsive Improvements */
@media (min-width: 992px) {
    .wizard-card {
        max-width: 900px;
        margin: 0 auto 32px;
    }
    
    .wizard-step .row > [class*="col-md-"] {
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .onboarding-brand h2 {
        font-size: 20px;
    }
    
    .onboarding-brand p {
        font-size: 14px;
    }
    
    .wizard-head h3 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .wizard-actions {
        flex-direction: column;
    }
    
    .wizard-actions > div {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .wizard-actions .btn {
        flex: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.btn:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}
