* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
 background: linear-gradient(150deg, purple, indigo);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(10px) translateY(10px); }
}

.container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.payment-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.form-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.title {
    text-align: center;
    margin-bottom: 25px;
}

.title h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #5470ec, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-guide {
    background: linear-gradient(135deg, #e8f4fd, #b8d7f0);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.guide-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-content i {
    color: #667eea;
    font-size: 20px;
    margin-top: 2px;
}

.guide-content p {
   color: #047024;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.input-control {
    margin-bottom: 15px;
}

.input-control label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

.input-control input {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-control input:focus {
    outline: none;
    border-color: #667eea;
    transform: translateY(-2px);
}

.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.button {
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.manual-section {
    margin-top: 15px;
}

.manual-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.manual-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #d63031);
}

.manual-btn:active {
    transform: translateY(-1px);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff, #fff5f5);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.step-content strong {
    color: #667eea;
    font-weight: 600;
}

.confirmation {
    margin-top: 30px;
}

.confirm-box {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.confirm-box i {
    color: #28a745;
    font-size: 24px;
}

.confirm-box p {
    color: #155724;
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

.confirm-box strong {
    color: #0c5460;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .payment-title {
        font-size: 20px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .title h2 {
        font-size: 24px;
    }
    
    .popup-content {
        margin: 10px;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-header h3 {
        font-size: 18px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .step {
        gap: 15px;
        padding: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .step-content h4 {
        font-size: 15px;
    }
    
    .step-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .payment-title {
        font-size: 18px;
    }
    
    .title h2 {
        font-size: 22px;
    }
    
    .guide-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .guide-content i {
        align-self: flex-start;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-number {
        align-self: center;
    }
    
    .confirm-box {
        flex-direction: column;
        gap: 10px;
    }
}

/* Custom scrollbar for popup */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Remove number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Loading animation for submit button */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
 background: linear-gradient(150deg, #0d44f8, #b90468);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: backgroundShift 10s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(10px) translateY(10px); }
}

.container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.payment-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.form-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.title {
    text-align: center;
    margin-bottom: 25px;
}

.title h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #5470ec, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-guide {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.guide-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-content i {
    color: #667eea;
    font-size: 20px;
    margin-top: 2px;
}

.guide-content p {
    color: #222;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.input-control {
    margin-bottom: 15px;
}

.input-control label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

.input-control input {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-control input:focus {
    outline: none;
    border-color: #667eea;
    transform: translateY(-2px);
}

.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.button {
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.manual-section {
    margin-top: 15px;
}

.manual-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.manual-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #d63031);
}

.manual-btn:active {
    transform: translateY(-1px);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff, #fff5f5);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.step-content strong {
    color: #667eea;
    font-weight: 600;
}

.confirmation {
    margin-top: 30px;
}

.confirm-box {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.confirm-box i {
    color: #28a745;
    font-size: 24px;
}

.confirm-box p {
    color: #155724;
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

.confirm-box strong {
    color: #0c5460;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .payment-title {
        font-size: 20px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .title h2 {
        font-size: 24px;
    }
    
    .popup-content {
        margin: 10px;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-header h3 {
        font-size: 18px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .step {
        gap: 15px;
        padding: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .step-content h4 {
        font-size: 15px;
    }
    
    .step-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .payment-title {
        font-size: 18px;
    }
    
    .title h2 {
        font-size: 22px;
    }
    
    .guide-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .guide-content i {
        align-self: flex-start;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-number {
        align-self: center;
    }
    
    .confirm-box {
        flex-direction: column;
        gap: 10px;
    }
}

/* Custom scrollbar for popup */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Remove number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Loading animation for submit button */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}