/* Forms Styling - Matches BlueFin Technology Website Theme */
.forms-container {
    max-width: 945px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter Tight', sans-serif;
}

.form-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #245ef4;
    border-radius: 2rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(36, 94, 244, 0.15);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #232323;
    margin-bottom: 0.5rem;
    font-size: 3rem;
}

.form-label.required::after {
    content: " *";
    color: #ff6b6b;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #edefea;
    border-radius: 1rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #245ef4;
    box-shadow: 0 0 0 3px rgba(36, 94, 244, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-group,
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-checkbox-item,
.form-radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    accent-color: #245ef4;
    cursor: pointer;
}

.form-checkbox-label,
.form-radio-label {
    cursor: pointer;
    color: #232323;
    font-size: 0.7rem;
}

.form-file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #245ef4;
    border-radius: 1rem;
    background: rgba(36, 94, 244, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-file-label:hover {
    background: rgba(36, 94, 244, 0.1);
    border-color: #5582f6;
}

.form-file-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #245ef4;
}

.form-file-text {
    text-align: center;
}

.form-file-text strong {
    display: block;
    color: #245ef4;
    margin-bottom: 0.25rem;
}

.form-file-text small {
    color: #666;
}

.form-range-group {
    margin-top: 1rem;
}

.form-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #edefea;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #245ef4;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #245ef4;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #245ef4;
    border-radius: 1.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.form-btn-primary {
    background-color: #245ef4;
    color: #ffffff;
}

.form-btn-primary:hover {
    background-color: #5582f6;
    border-color: #5582f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 94, 244, 0.3);
}

.form-btn-secondary {
    background-color: transparent;
    color: #245ef4;
}

.form-btn-secondary:hover {
    background-color: #245ef4;
    color: #ffffff;
    transform: translateY(-2px);
}

.form-btn-outline {
    background-color: transparent;
    color: #245ef4;
    border-color: #edefea;
}

.form-btn-outline:hover {
    background-color: #edefea;
    color: #464845;
    border-color: #edefea;
}

.form-progress {
    margin-bottom: 2rem;
}

.form-progress-bar {
    height: 6px;
    background: #edefea;
    border-radius: 3px;
    overflow: hidden;
}

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #245ef4 0%, #5582f6 100%);
    transition: width 0.3s ease;
}

.form-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.form-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.form-progress-step.active {
    color: #245ef4;
    font-weight: 600;
}

.form-progress-step.completed {
    color: #3a341c;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #3a341c;
    color: #155724;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.form-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffea64;
    color: #856404;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.form-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #a0e2e1;
    color: #0c5460;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forms-container {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-btn {
        width: 100%;
    }
}

/* Animation Classes */
.form-section.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.form-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #245ef4;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
