/* Enhanced Alert Styles */
.alert-success-enhanced {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert-error-enhanced {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Success Animation */
.success-animation {
    text-align: center;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 0 auto 20px;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px #4CAF50; }
}

.success-details {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.next-steps {
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.next-steps ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.next-steps li {
    margin: 8px 0;
    color: #495057;
}

/* Error Styles */
.error-animation {
    text-align: center;
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error-solutions {
    text-align: left;
    margin: 20px 0;
}

.solution-item {
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #dc3545;
}

.solution-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.solution-link:hover {
    text-decoration: underline;
}

.error-technical {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Validation Errors */
.validation-error {
    text-align: left;
}

.error-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.error-header h4 {
    margin: 0;
    color: #721c24;
}

.error-list {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.error-list li {
    margin: 8px 0;
    color: #721c24;
    font-weight: 500;
}

.error-help {
    font-style: italic;
    color: #856404;
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 5px;
}

/* Form Error States */
.form-group-enhanced input.error,
.form-group-enhanced textarea.error,
.form-group-enhanced select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Loading Button */
.btn-loading {
    display: none;
}

.btn-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Button Loading State */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert-success-enhanced,
    .alert-error-enhanced {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .checkmark {
        width: 60px;
        height: 60px;
    }
    
    .success-details,
    .next-steps,
    .solution-item {
        padding: 15px;
    }
    
    .error-icon {
        font-size: 40px;
    }
}

/* Enhanced Form Styles */
.form-group-enhanced .form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group-enhanced .form-floating input,
.form-group-enhanced .form-floating textarea,
.form-group-enhanced .form-floating select {
    width: 100%;
    padding: 1rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group-enhanced .form-floating input:focus,
.form-group-enhanced .form-floating textarea:focus,
.form-group-enhanced .form-floating select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-group-enhanced .form-floating label {
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    color: #6c757d;
    transition: all 0.2s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 0.25rem;
}

.form-group-enhanced .form-floating input:focus + label,
.form-group-enhanced .form-floating textarea:focus + label,
.form-group-enhanced .form-floating select:focus + label,
.form-group-enhanced .form-floating input:not(:placeholder-shown) + label,
.form-group-enhanced .form-floating textarea:not(:placeholder-shown) + label,
.form-group-enhanced .form-floating select:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
}

/* Field error messages */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}
