@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
      font-family: "Poppins", sans-serif;
    background: #1B255A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.logo-container {
    position: absolute;
    top: 3%;
    width: 100%;
    text-align: center;
}

.form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 200px;
    max-width: 500px;
    margin: 0 auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
}

.form-step.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: normal;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #333;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    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='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required-text {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    font-style: italic;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 0 20px;
    position: relative;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.prev-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prev-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    color: #666;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prev-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.next-btn {
    background: #333333;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.next-btn:hover:not(:disabled) {
    background: #000000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    width: auto;
    padding: 0 30px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.progress-indicator {
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Simple Progress Bar at Top */
.progress-bar-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.progress-fill-top {
    height: 100%;
    background: #000000;
    width: 20%;
    transition: width 0.4s ease;
}

/* Success page styling */
.success-page {
    animation: fadeIn 0.5s ease-in-out;
}

.success-page .download-btn {
    position: relative;
    overflow: hidden;
}

.success-page .download-btn: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;
}

.success-page .download-btn:hover:before {
    left: 100%;
}

/* Hide navigation and progress when showing success page */
.success-active .navigation,
.success-active .progress-indicator {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 40px 30px 30px 30px;
        margin: 10px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .navigation {
        margin-top: 40px;
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .form-container {
        padding: 35px 25px 25px 25px;
    }
    
    .progress-indicator {
        bottom: 12px;
        right: 15px;
        font-size: 11px;
    }
}

/* Loading and Success States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
    color: #4CAF50;
    font-size: 18px;
    font-weight: 500;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-bottom-color: #e74c3c;
}

.form-group.error .error-message {
    display: block;
}
