﻿:root {
    --primary-color: #ffb703;
    --secondary-color: #023047;
    --accent-color: #fb8500;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #38b000;
    --error-color: #d90429;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --hover-brightness: 1.1;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
}

.lead-form-container {
    max-width: 850px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--secondary-color);
    }

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #e0e5eb;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .form-control:focus {
        color: var(--dark-color);
        background-color: #fff;
        border-color: var(--primary-color);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(255, 183, 3, 0.25);
    }

    .form-control::placeholder {
        color: #b0b0b0;
        opacity: 1;
    }

.input-group {
    display: flex;
    width: 100%;
}

.input-group-prepend {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--secondary-color);
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 2px solid #e0e5eb;
    border-right: 0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.required-field::after {
    content: ' *';
    color: var(--error-color);
    font-weight: bold;
}

.char-counter {
    position: absolute;
    right: 10px;
    bottom: -20px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Buttons */
.form-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev, .btn-next, .btn-submit {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev {
    background-color: #e0e5eb;
    color: var(--secondary-color);
}

    .btn-prev:hover {
        background-color: #d1d7de;
    }

.btn-next {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin-left: auto;
}

    .btn-next:hover {
        background-color: #ffc233;
        filter: brightness(var(--hover-brightness));
    }

.btn-submit {
    background-color: var(--accent-color);
    color: white;
    margin-left: auto;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-submit:hover {
        background-color: #e67700;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* Progress Bar */
.progress-container {
    max-width: 850px;
    margin: 1rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.progress {
    height: 0.75rem;
    background-color: #e0e5eb;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 1rem;
    transition: width 0.5s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.current-step {
    font-weight: 600;
}

/* Thank you message */
.thank-you-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 650px;
    margin: 2rem auto;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

.thank-you-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.thank-you-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #6c757d;
}

.another-form-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

    .another-form-link:hover {
        background-color: #ffc233;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        color: var(--secondary-color);
        text-decoration: none;
    }

/* Custom styling for chosen select */
.chosen-container {
    width: 100% !important;
}

.chosen-container-single .chosen-single {
    height: 48px;
    line-height: 46px;
    border-radius: var(--border-radius);
    background: white;
    border: 2px solid #e0e5eb;
    padding: 0 1rem;
    box-shadow: none;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    background: white;
    border: 2px solid var(--primary-color);
}

.chosen-container .chosen-drop {
    border: 2px solid var(--primary-color);
    border-top: 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chosen-container .chosen-results li.highlighted {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Form columns */
.form-columns {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.form-column {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .form-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .form-column {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Validation styles */
.input-validation-error {
    border-color: var(--error-color) !important;
}

.text-danger {
    color: var(--error-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Emergency fix for simplified view */
body.simplified-view .detailsView,
.simplified-view .detailsView,
[data-simplified="True"] .detailsView {
    display: none !important;
}

body.simplified-view #section-organization,
.simplified-view #section-organization,
[data-simplified="True"] #section-organization {
    display: none !important;
}

/* For iframe embedding */
body.iframe-embedded .detailsView {
    display: none !important;
}

/* Force correct display of form sections in simplified view */
body.simplified-view #section-basic,
.simplified-view #section-basic {
    display: block;
}

body.simplified-view #section-notes,
.simplified-view #section-notes {
    display: none;
}

/* Adjust layout for simplified view */
.simplified-view .form-column:not(.detailsView) {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .lead-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .thank-you-message {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn-prev, .btn-next, .btn-submit {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}
