:root {
    --color-dark-blue: #375171;
    --color-medium-blue: #386BA6;
    --color-light-blue: #4794C4;
    --color-pale-blue: #8FB8DE;
    --color-cream: #F4F0C4;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-bg: #f9f9f9;
    --font-main: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--color-cream);
    border-radius: 8px;
    color: var(--color-cream);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-img {
    max-height: 80px;
    width: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-dark-blue);
    font-weight: 700;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: var(--color-white);
    margin: 0;
    font-size: 2.5rem;
}

/* Form Styles */
.quote-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-top: -40px;
    /* Overlap header */
    position: relative;
    border-top: 5px solid var(--color-medium-blue);
}

/* Wizard / Tabs Styles */
.wizard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #eee;
    z-index: 0;
    transform: translateY(-50%);
}

.wizard-step {
    position: relative;
    z-index: 1;
    background: var(--color-white);
    padding: 0 10px;
    text-align: center;
    color: #999;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s;
}

.wizard-step.active {
    color: var(--color-medium-blue);
}

.wizard-step.active .step-number {
    background-color: var(--color-medium-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(56, 107, 166, 0.2);
}

.wizard-step.completed .step-number {
    background-color: var(--color-light-blue);
    color: white;
}

.tab-content {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-content.active {
    visibility: visible;
    height: auto;
    opacity: 1;
    animation: fadeIn 0.5s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-section h3 {
    color: var(--color-medium-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 25px;
    background-color: #f4f6f9;
    /* Light grey/blue background */
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.form-group:hover {
    transform: translateX(5px);
    background-color: #eef2f7;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-dark-blue);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-main);
    box-sizing: border-box;
    /* Incluye padding y border en el width */
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 3px rgba(71, 148, 196, 0.2);
    outline: none;
}

/* Custom Checkboxes and Radios */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.option-card {
    position: relative;
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-card label {
    display: block;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: var(--color-text);
    font-weight: 500;
}

.option-card input:checked+label {
    border-color: var(--color-medium-blue);
    background-color: rgba(56, 107, 166, 0.05);
    color: var(--color-medium-blue);
    font-weight: 700;
}

.option-card label:hover {
    border-color: var(--color-pale-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-medium-blue);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 107, 166, 0.3);
}

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

.btn-secondary:hover {
    background-color: #dbe0e5;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Admin Panel */
.admin-login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.admin-header {
    background-color: var(--color-dark-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: var(--color-white);
    text-decoration: none;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dashboard-table th {
    background-color: var(--color-medium-blue);
    color: white;
    font-weight: 600;
}

.dashboard-table tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-quoted {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-sent {
    background-color: #d4edda;
    color: #155724;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 5px;
    color: white;
}

.btn-view {
    background-color: var(--color-light-blue);
}

.btn-delete {
    background-color: #dc3545;
}

/* Quote Detail View */
.quote-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.detail-label {
    width: 200px;
    font-weight: 600;
    color: var(--color-dark-blue);
}

.detail-value {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        margin-bottom: 5px;
    }

    .wizard-step span {
        display: none;
    }
}