.d-none{
    display: none;
}
.d-block{
    display: block;
}

.form-section-header {
    margin-bottom: 1.5rem;
}

.letter-spacing-1 {
    letter-spacing: 0.5px;
}

.heading-line {
    position: relative;
    height: 2px;
    background-color: #f0f2f5;
    margin-top: 8px;
}

.heading-line-primary {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(90deg, #1A73E8 0%, #87CEFA 100%);
}

.modal-body .form-section-header h6 {
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-body .form-section-header p {
    color: #7b809a !important;
}

.input-group-outline {
    position: relative;
}

.input-group-outline .btn-link {
    z-index: 3;
    opacity: 0.7;
}

.input-group-outline .btn-link:hover {
    opacity: 1;
}

.input-group-outline .material-icons {
    font-size: 1.1rem;
    line-height: 1.2;
    color: #7b809a;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 3;
}

.password-toggle .btn-link {
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b809a;
    transition: color 0.2s ease;
}

.password-toggle .btn-link:hover {
    color: #344767;
}

.input-group-outline.is-focused .password-toggle .btn-link {
    color: #1A73E8;
}

.avatar.avatar-xxl {
    width: 110px;
    height: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar.avatar-xxl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.avatar-xxl.bg-gradient-secondary {
    background: linear-gradient(195deg, #747b8a, #495361);
}

.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.bg-gradient-secondary {
    background: linear-gradient(195deg, #747b8a, #495361);
}

.avatar span {
    font-size: 12px;
    font-weight: 600;
}

/* Optional: Add hover effect */
.avatar img:hover, .avatar.bg-gradient-secondary:hover {
    transform: scale(1.1);
}

/* Optional: Add tooltip for full name */
.avatar[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* Add these to your existing CSS */
.avatar-upload-wrapper {
    position: relative;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Optional: Add animation for image preview */
.avatar img {
    transition: all 0.3s ease;
}

.avatar img:hover {
    transform: scale(1.05);
}

/* Style for the upload button group */
.upload-buttons {
    transition: opacity 0.3s ease;
}

.upload-buttons:hover {
    opacity: 1;
}

.upload-buttons .btn {
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* Loading overlay */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.form-check:not(.form-switch) .form-check-input[type="checkbox"]:checked {
    background-color: #1A73E8!important;
    border-color: #1A73E8!important;
}

/* Lead Detail Page Styles */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 2px;
    margin-left: -1.5px;
    content: '';
    background-color: #e3e6f0;
}

.timeline-block {
    position: relative;
    margin-bottom: 50px;
}

.timeline-step {
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e3e6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1;
}

.timeline-content {
    position: relative;
    margin-left: 50px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e3e6f0;
}

.timeline-content:before {
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8f9fa;
    content: '';
}

.solar-data {
    font-size: 12px;
}

.card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#sunroof-map {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Auto-scroll containers */
.scrollable-content {
    max-height: 600px;
    overflow: auto;
}

/* Agreement page styles */
.agreement-scroll {
    max-height: 60vh;
    overflow: auto;
}

.signature-input-strong {
    border-width: 2px !important;
}

.form-check:not(.form-switch) .form-check-input[type="checkbox"]::after {
    content: "" !important;
    position: absolute;
    left: 5px;
    top: 2px;
    width: 8px !important;   /* slightly bigger */
    height: 14px !important; /* slightly taller */
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.card-icons {
    position: absolute;
    left: 135px;
}

.input-group.input-group-outline.is-filled .form-label + .form-control.gray {
    border-color: lightgray !important;
    box-shadow: inset 1px 0 lightgray, inset -1px 0 lightgray, inset 0 -1px lightgray;
    border-top-color: transparent !important;
}

.input-group.input-group-outline.is-filled .form-label.gray::before, .input-group.input-group-outline.is-filled .form-label.gray::after{
    border-top-color: lightgray;
    box-shadow: inset 0 1px lightgray;
}

.input-group.input-group-outline.is-filled .form-label.gray{
    color: unset;
}
