/* Forms-specific Styles - Enhanced form controls */

/* Info Text Field - Read-only display */
.form-info-text {
    padding: 14px 18px;
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.form-info-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.form-info-text a:hover {
    text-decoration: underline;
}

/* Form Description Text */
.form-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 4px 0;
    margin-bottom: 8px;
    background: none;
    font-weight: 400;
}

/* Remove font-family and background from rendered HTML in descriptions */
.form-description *,
.form-text *,
.hero-subtitle-text * {
    font-family: inherit !important;
    background: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.form-text {
    display: block;
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    background: none;
    font-weight: 400;
    word-break: break-word;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-text.text-muted * {
    color: inherit !important;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    min-height: 56px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-control:hover {
    background-color: #fafbff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
    transform: translateY(-2px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    border-width: 2.5px;
    background-color: white;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.1), 0 6px 16px rgba(0, 86, 179, 0.2);
}

.form-control::placeholder {
    color: #6c757d;
    font-weight: 500;
    font-style: italic;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    padding: 14px 18px;
    line-height: 1.8;
}

/* Custom Select Wrapper */
.form-group select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23667eea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px 24px;
    padding: 12px 55px 12px 18px;
    min-height: 56px;
    font-weight: 600;
    font-size: 1rem;
    color: #212529 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.form-group select.form-control:hover {
    background-color: #fafbff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%230056b3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px 24px;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
    transform: translateY(-2px);
}

.form-group select.form-control:focus {
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23003d82' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px 24px;
    border-color: var(--primary-color);
    border-width: 2.5px;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.1), 0 6px 16px rgba(0, 86, 179, 0.2);
    outline: none;
}

.form-group select.form-control option {
    padding: 14px 18px;
    font-weight: 500;
    background: white;
    color: #212529 !important;
    font-size: 1rem;
    min-height: 50px;
    line-height: 1.6;
}

.form-group select.form-control option:first-child {
    color: #6c757d !important;
    font-style: italic;
}

.form-group select.form-control option:checked,
.form-group select.form-control option:hover {
    background: linear-gradient(145deg, #e6f0ff 0%, #d4e7ff 100%);
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 24px;
    min-height: 56px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-check:hover {
    background: linear-gradient(145deg, #f0f7ff 0%, #e3f2fd 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.1);
    transform: translateX(4px);
}

.form-check:has(input:checked) {
    background: linear-gradient(145deg, #e6f0ff 0%, #d4e7ff 100%);
    border-color: var(--primary-color);
    border-width: 2.5px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.form-check-input {
    width: 22px;
    height: 22px;
    margin-right: 16px;
    margin-left: 0;
    cursor: pointer;
    appearance: none;
    border: 2.5px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 0;
}

.form-check-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.08);
}

.form-check-input:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
}

.form-check-input:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    animation: checkZoom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkZoom {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.form-check-label {
    flex: 1;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    margin-bottom: 0 !important;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.form-check:has(input:checked) .form-check-label {
    color: var(--primary-color);
}

/* File Input */
input[type="file"].form-control {
    padding: 0;
    border: 2px dashed #e0e7ff;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
    min-height: 56px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

input[type="file"].form-control:hover {
    border-color: var(--primary-color);
    background-color: #fafbff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

input[type="file"].form-control:focus {
    background-color: white;
    border-color: var(--primary-color);
    border-width: 2.5px;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.1), 0 6px 16px rgba(0, 86, 179, 0.2);
}

input[type="file"].form-control::file-selector-button {
    padding: 18px 28px;
    margin: 0;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    height: 100%;
    min-height: 52px;
}

input[type="file"].form-control::file-selector-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002d5c 100%);
}



/* Alerts */

