/**
 * Supplier Update - Master of Malt Theme
 * Professional styling for company details verification
 */

/* === Master of Malt Brand Colors === */
:root {
    /* Official Master of Malt brand colors */
    --brand-color: 207, 57%, 15%;  /* Primary brand color (HSL) */
    --brand-primary: #0d2e38;      /* Primary teal */
    --brand-dark: #091a20;         /* Dark teal for headers */
    --brand-accent: #b0914a;       /* Gold accent */
    --brand-yellow: #f7da39;       /* Buy button yellow */

    /* Semantic colors */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --security-green: #28a745;
}

/* === Body & Layout === */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #212529;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* === Security Banner === */
.security-banner {
    display: none; /* Hidden per user request */
}

.security-text {
    font-size: 0.875rem;
}

.domain-highlight {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-weight: bold;
}

/* === Header === */
.page-header {
    background-color: hsl(var(--brand-color));
    border-bottom: 3px solid var(--brand-primary);
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-logo img {
    max-height: 50px;
    margin-right: 15px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .page-title {
        text-align: left;
        margin-top: 1rem;
        font-size: 1.25rem;
    }
}

/* === Security Notice === */
.security-notice {
    border-left: 4px solid var(--info-color);
    background-color: #e7f3ff;
    border-color: #b6d4fe;
}

.security-notice .alert-heading {
    color: #084298;
}

.security-notice ul {
    padding-left: 1.25rem;
}

.security-notice li {
    margin-bottom: 0.5rem;
}

/* === Content Card === */
.content-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--border-color);
}

@media (max-width: 576px) {
    .content-card {
        padding: 1.5rem;
    }
}

/* === Step Indicator === */
.step-indicator {
    padding: 1rem 0;
}

.step {
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(13, 46, 56, 0.15);
}

.step.completed .step-circle {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--brand-primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success-color);
}

@media (max-width: 576px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }
}

/* === Form Sections === */
.form-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-primary);
}

/* === Form Controls === */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 2px solid #ced4da;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 46, 56, 0.15);
}

.form-control-lg {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
}

.form-label {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.text-uppercase {
    text-transform: uppercase;
}

.font-monospace {
    font-family: 'Courier New', Courier, monospace;
}

/* === Alerts === */
.alert {
    border-radius: 0.5rem;
    border-left-width: 4px;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* === Buttons === */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 46, 56, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

/* === Help Section === */
.help-section {
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

/* === Footer === */
.page-footer {
    background-color: #343a40;
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.page-footer p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* === Utility Classes === */
.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* === Invalid Feedback === */
.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

/* === Loading States === */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* === Accessibility === */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === Print Styles === */
@media print {
    .security-banner,
    .page-header,
    .help-section,
    .page-footer {
        display: none;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeIn 0.3s ease-out;
}

/* === Form Check (Checkboxes) === */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid #ced4da;
}

.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.form-check-label {
    margin-left: 0.5rem;
    color: var(--dark-color);
}
