/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    animation: fadeInBody 0.8s ease-out;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInFromTop 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(233, 30, 99, 0.05), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-container {
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out 0.3s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo svg {
    max-width: 100%;
    height: auto;
}

.logo-image {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.logo-image:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromLeft 0.8s ease-out 0.5s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    animation: slideInFromRight 0.8s ease-out 0.7s both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
    animation: slideInFromBottom 0.8s ease-out 0.9s both;
}

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

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-header {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: headerShimmer 4s infinite;
    pointer-events: none;
}

@keyframes headerShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header h2 i {
    animation: pulse 2s infinite;
}

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

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Form Styles */
.application-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

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

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.form-section h3:hover {
    color: #e91e63;
}

.form-section h3 i {
    color: #e91e63;
    transition: transform 0.3s ease;
}

.form-section h3:hover i {
    transform: scale(1.2) rotate(5deg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.form-group:hover {
    transform: translateY(-2px);
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: #e91e63;
    transform: translateY(-2px);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c0c0c0;
    transform: translateY(-1px);
}

.form-group select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

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

/* File Upload Styles */
.file-upload-group {
    position: relative;
}

.file-upload-area {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    cursor: pointer;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 0;
}

.file-upload-area:hover::before {
    width: 100%;
    height: 100%;
}

.file-upload-area:hover {
    border-color: #e91e63;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.file-upload-area.dragover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
    transform: scale(1.02);
    animation: dragPulse 0.5s ease-in-out;
}

@keyframes dragPulse {
    0%, 100% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1.05);
    }
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-content {
    position: relative;
    z-index: 1;
}

.file-upload-content i {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.file-upload-area:hover .file-upload-content i {
    transform: scale(1.2) rotate(5deg);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: scale(1.2) translateY(0);
    }
    40% {
        transform: scale(1.2) translateY(-10px);
    }
    80% {
        transform: scale(1.2) translateY(-5px);
    }
}

.file-upload-content p {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    transition: color 0.3s ease;
}

.file-upload-content span {
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #e91e63;
    display: none;
    animation: slideInFromLeft 0.3s ease;
}

.file-info.show {
    display: block;
}

.file-info i {
    color: #e91e63;
    margin-right: 8px;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.submit-btn {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.5);
    animation: buttonGlow 0.3s ease;
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(233, 30, 99, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(233, 30, 99, 0.5);
    }
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.02);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.modal-body {
    padding: 30px;
    text-align: center;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #666;
}

.footer p {
    margin-bottom: 5px;
}

.footer .built-by {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

.footer .built-by a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer .built-by a:hover {
    color: #ad1457;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .application-form {
        padding: 20px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .file-upload-area {
        padding: 20px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
    }
    
    .logo svg {
        width: 250px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #f44336;
    background: #fff5f5;
}

.form-group.error label {
    color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Success States */
.form-group.success input,
.form-group.success select {
    border-color: #4caf50;
    background: #f8fff8;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* Additional Micro-Animations */
.form-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e91e63, #ad1457);
    transition: width 0.3s ease;
}

.form-section:hover h3::after {
    width: 100%;
}

/* Enhanced Input Animations */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1), 0 5px 15px rgba(233, 30, 99, 0.2);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #4caf50;
    animation: validPulse 0.3s ease;
}

@keyframes validPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Checkbox and Radio Animations */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    position: relative;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.form-group input[type="checkbox"]:checked,
.form-group input[type="radio"]:checked {
    animation: checkBounce 0.3s ease;
}

@keyframes checkBounce {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerLoad 1.5s infinite;
}

@keyframes shimmerLoad {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .form-section {
        opacity: 0;
        transform: translateY(30px);
        animation: scrollReveal 0.6s ease-out forwards;
    }

    .form-section:nth-child(1) { animation-delay: 0.1s; }
    .form-section:nth-child(2) { animation-delay: 0.2s; }
    .form-section:nth-child(3) { animation-delay: 0.3s; }
    .form-section:nth-child(4) { animation-delay: 0.4s; }
    .form-section:nth-child(5) { animation-delay: 0.5s; }
    .form-section:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes scrollReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particle Effect for Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(233, 30, 99, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Enhanced Focus Indicators */
*:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
    border-radius: 4px;
    animation: focusGlow 0.3s ease;
}

@keyframes focusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.5);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(233, 30, 99, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
    
    .submit-btn {
        border: 2px solid white;
    }
}