:root {
    --primary-blue: #002856;
    --secondary-blue: #00A7E1;
    --accent-red: #B71C1C;
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --text-main: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --success: #2E7D32;
    --error: #D32F2F;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Password Gate */
.gate-overlay, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 86, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.4s ease;
}

.gate-card, .modal-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.logo-container img {
    margin-bottom: 20px;
}

.gate-card h2 {
    margin-bottom: 10px;
}

.gate-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.error-msg {
    color: var(--error);
    margin-top: 15px;
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* Inputs & Buttons */
input[type="password"],
input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #FAFAFA;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: var(--surface);
}

.required {
    color: var(--accent-red);
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-size: 1rem;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-blue);
    color: #FFF;
    width: 100%;
}

.btn-primary:hover {
    background: #001A3D;
}

.btn-secondary {
    background: #E0E0E0;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #D5D5D5;
}

.btn-success {
    background: var(--success);
    color: #FFF;
}

.btn-success:hover {
    background: #1B5E20;
}

/* Main Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

main.hidden {
    display: none;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand h1 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.header-text h2 {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Progress Tracker */
.progress-container {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    border-bottom: 1px solid var(--border);
}

.step {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.step.active {
    color: var(--primary-blue);
    border-bottom-color: var(--secondary-blue);
}

.step.completed {
    color: var(--primary-blue);
}

/* Wizard Steps */
.wizard-container {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

.wizard-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.step-header p {
    color: var(--text-light);
    margin-top: 5px;
}

.step-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: right;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.step-footer .btn-primary, .step-footer .btn-success {
    width: auto;
    min-width: 150px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--surface);
}

.product-card img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h4 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.product-card:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card.selected {
    border-color: var(--secondary-blue);
    background: rgba(0, 167, 225, 0.05);
}

/* Details Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.selection-summary {
    margin-top: 30px;
    padding: 20px;
    background: #F5F7FA;
    border-radius: 4px;
    border-left: 4px solid var(--primary-blue);
}

.selection-summary h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.summary-items {
    font-size: 0.95rem;
    color: var(--text-main);
}

.summary-item {
    margin-bottom: 5px;
}

/* Modal */
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.modal-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 15px;
}

.modal-card h2 {
    margin-bottom: 15px;
}

.modal-card p {
    color: var(--text-main);
    margin-bottom: 10px;
}

.modal-subtext {
    font-size: 0.9rem;
    color: var(--text-light) !important;
    margin-bottom: 30px !important;
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .progress-steps {
        font-size: 0.85rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-step {
        padding: 20px;
    }
}
