* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* Header Navbar */
.supplier-header {
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 38px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-text .tvc { color: #1e3a8a; }
.brand-text .store { color: #ef4444; }

.portal-tag {
    font-size: 0.725rem;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
    margin-left: 0.5rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
}

.btn-logout {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Page Layout */
.page-wrapper {
    margin-top: 85px;
    padding: 2.5rem 1rem;
    display: flex;
    justify-content: center;
}

.form-card {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.06);
}

.card-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
}

.card-header h2 {
    font-size: 1.35rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Form Sections */
.form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 1rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.725rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-textarea {
    resize: vertical;
    min-height: 85px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.invalid, .form-select.invalid, .form-textarea.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.help-text {
    font-size: 0.725rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.error-msg {
    font-size: 0.725rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 0.25rem;
    display: none;
}

/* Image Previews */
.preview-container {
    margin-top: 1.25rem;
}

.preview-label {
    font-size: 0.725rem;
    font-weight: 700;
    color: #475569;
    display: block;
    margin-bottom: 0.5rem;
}

.preview-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-thumb-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #bfdbfe;
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Policy Scroll Box & Terms Styling */
.policy-scroll-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 130px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.terms-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.terms-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
    accent-color: #2563eb;
    cursor: pointer;
}

.terms-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

/* Supplier Support Notice Box Styling */
.support-notice-section {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}

.support-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.support-notice-icon {
    font-size: 1.2rem;
    color: #d97706;
    margin-top: 0.1rem;
}

.support-notice-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 0.25rem;
}

.support-notice-desc {
    font-size: 0.775rem;
    color: #78350f;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.support-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.775rem;
    color: #78350f;
    line-height: 1.5;
}

/* Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-submit {
    flex: 2;
    padding: 0.85rem;
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.btn-reset {
    flex: 1;
    padding: 0.85rem;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: #f1f5f9;
    color: #0f172a;
}

@media screen and (max-width: 640px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
}