/* Member Application Forms Styles */

/* Form Section Headers */
.form-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section-header i {
    margin-right: 8px;
}

/* Enhanced Form Controls */
.form-control-enhanced, .form-control-enhanced:focus {
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.form-control-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.form-select-enhanced, .form-select-enhanced:focus {
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    font-size: 13px;
}

.form-select-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Label Enhancements */
.form-label-enhanced {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label-enhanced i {
    margin-right: 8px;
    color: #667eea;
}

/* Button Enhancements */
.btn-enhanced {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    background-color: #667eea;
    color: white;
}

.btn-enhanced:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover:before {
    left: 100%;
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-enhanced i {
    margin-right: 8px;
}

/* Card Enhancements */
.card-enhanced {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-enhanced:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 20px;
    margin-bottom: 0;
}

.card-body {
    padding: 30px;
}

/* File Input Styling - Standardized */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    font-size: 14px;
}

.file-input-label:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.file-input-label i {
    margin-right: 8px;
    color: #667eea;
}

/* Custom Checkbox */
.form-check-enhanced {
    position: relative;
    padding-left: 2rem;
}

.form-check-enhanced input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.form-check-enhanced .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-enhanced input:checked ~ .form-check-label .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-enhanced .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.form-check-enhanced input:checked ~ .form-check-label .checkmark:after {
    display: block;
}

.form-check-enhanced .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }

    .form-section-header {
        padding: 10px 15px;
        font-size: 14px;
    }

    .form-control-enhanced,
    .form-select-enhanced {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-enhanced {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
    }

    .card-header-enhanced {
        padding: 15px;
    }

    .card-header-enhanced h2 {
        font-size: 18px;
    }

    .row > .col-md-6,
    .row > .col-md-4,
    .row > .col-md-12 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .card-header-enhanced p {
        font-size: 14px;
    }
}
