/* KOVEXIA Enterprise RFQ Styles - Premium Redesign */

/* ==================== LAYOUT & CONTAINER ==================== */
.quote-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.rfq-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.rfq-left {
    flex: 1.8;
    /* Approx 65% */
}

.rfq-right {
    flex: 1;
    /* Approx 35% */
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* ==================== HEADER ==================== */
.quote-header {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.quote-header h1 {
    color: var(--secondary);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.quote-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

.quote-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: var(--radius-sm);
    border: 1px solid #bae6fd;
}

/* ==================== FORM CARD ==================== */
.quote-form-card {
    background: #ffffff;
    padding: 2.5rem;
    /* Spacious padding */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft, premium shadow */
    border: 1px solid #f1f5f9;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== PROGRESS INDICATOR ==================== */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Ensure steps align to top */
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.progress-track {
    position: absolute;
    top: 18px;
    /* Align with center of 36px circle */
    transform: translateY(-50%);
    left: 4rem;
    right: 4rem;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 140px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-align: center;
    /* Center text */
    line-height: 1.3;
}

/* Active Step */
.progress-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 163, 224, 0.1);
}

.progress-step.active .step-label {
    color: var(--primary);
}

/* Completed Step (Simulated for Step 1 when on Step 2) */
.progress-step.completed .step-circle {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--secondary);
}


/* ==================== FORM STEPS & ANIMATION ==================== */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    20% {
        opacity: 0.9;
        transform: scale(1.08);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 2rem;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    animation: successPulse 3s ease-out infinite;
}

.success-icon-circle i {
    color: white;
    font-size: 2.5rem;
}

.success-title {
    color: var(--secondary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.success-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== FORM SECTIONS ==================== */
.form-section {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    font-size: 1rem;
    background: rgba(0, 163, 224, 0.1);
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== FORM FIELDS ==================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #94a3b8;
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure select dropdowns are visible */
.form-group 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='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cbd5e1;
}

/* Validation Error Styles */
.error-msg {
    color: #e11d48;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: #e11d48;
    background-color: #fff1f2;
}

.form-group.error .error-msg {
    display: block;
}

/* ==================== BUTTONS & ACTIONS ==================== */
.btn-block {
    width: 100%;
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.flex-grow-1 {
    flex-grow: 1;
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.1rem;
}

.btn-primary i {
    margin-left: 0.5rem;
    font-size: 0.9em;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748B;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.quote-form button[type="submit"] {
    background-color: var(--primary);
    /* Teal background */
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 163, 224, 0.2);
    border: none;
    cursor: pointer;
}

.quote-form button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 163, 224, 0.3);
}

.quote-form button[type="button"] {
    /* Next step button */
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}


.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.privacy-note i {
    color: #22c55e;
    /* Green lock icon */
}

/* ==================== TRUST PANEL (RIGHT COL) ==================== */
.trust-panel {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.trust-panel h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.trust-list li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 1.1em;
}

.trust-badges-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mini-badge {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.mini-badge i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.mini-badge span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.guarantee-box {
    background: #f0f9ff;
    border: 1px dashed #7dd3fc;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guarantee-box i {
    font-size: 2rem;
    color: var(--primary);
}

.guarantee-box strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.guarantee-box p {
    font-size: 0.8rem;
    margin: 0;
    color: #475569;
}

.trusted-by-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.trusted-by-text strong {
    color: var(--secondary);
}

/* ==================== ACTIVE MENU ==================== */
.active-quote {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .rfq-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .rfq-left,
    .rfq-right {
        width: 100%;
        flex: none;
    }

    .rfq-right {
        position: static;
        order: -1;
        /* Optional: Put trust panel on top on tablet? Let's keep form first for conversion. */
        order: 1;
    }

    .progress-track {
        left: 2rem;
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .quote-page-container {
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .quote-header {
        padding: 3rem 1rem 2rem;
    }

    .quote-form-card {
        padding: 1.5rem;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1rem;
    }

    .quote-header h1 {
        font-size: 2rem;
    }

    .progress-container {
        padding: 0;
        margin-bottom: 2rem;
    }

    .progress-track {
        left: 3rem;
        right: 3rem;
    }

    .progress-step {
        width: 100px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem 0;
        margin-top: 2rem;
        border-top: 1px solid #e2e8f0;
    }

    .btn-outline,
    .btn-primary {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .next-step-btn {
        width: 100%;
        margin-top: 1rem;
    }

    .trust-panel {
        margin-top: 2rem;
        position: static;
    }

    .rfq-right {
        position: static;
        order: 2;
    }

    .rfq-left {
        order: 1;
    }
}

@media (max-width: 480px) {
    .quote-header {
        padding: 2rem 1rem 1.5rem;
    }

    .quote-header h1 {
        font-size: 1.75rem;
    }

    .quote-form-card {
        padding: 1.25rem;
    }

    .progress-step {
        width: 80px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 0.95rem;
    }
}