.error-message {
    display: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #dc3545;
    font-weight: 500;
}

.error-message:empty {
    display: none !important;
}

/* Input Error Styling */
.input.error {
    border: 1px solid #dc3545 !important;
}

.input.error input,
.input.error textarea {
    border-color: #dc3545 !important;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    margin-left: 0.5rem;
}

.d-none {
    display: none !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Label positioning for tooltip */
.label.rel {
    position: relative;
}

.label.rel .core-service-tooltip {
    width: max-content;
    background-color: #191221E5;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--SFProBold);
    line-height: 1.2;
    display: none;
    transition: all 0.3s ease-in-out;
}

.label.rel:hover .core-service-tooltip {
    display: block;
}

.label.rel .core-service-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px;
    border-style: solid;
    border-color: transparent transparent #191221E5 transparent;
}

/* Ensure checkbox child elements don't block clicks and make box clickable */
.custom-checkbox .box img,
.custom-checkbox .box .check {
    pointer-events: none;
}

.custom-checkbox .box {
    cursor: pointer;
}

 .input-wrapper .input.error,
 .input-wrapper .company-name-input.error {
     border: 1px solid #DC2626 !important;
 }

.error-text {
    color: #DC2626;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.input-wrapper .input {
    transition: border-color 0.2s ease;
}

.input-wrapper .input:focus-within {
    border-color: #4F46E5;
}

.input-wrapper .input.error:focus-within {
    border-color: #DC2626;
}

.modal-backdrop.companies-backdrop {
    z-index: 1070 !important;
}
.modal#companies.show {
    z-index: 1080 !important;
}
