/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding-bottom: 80px;
}

/* Header Styles */
.sticky-banner {
    background: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
}

.logo {
    width: 100%;
    margin: 0;
    text-align: center;
    display: block;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    min-height: 80px;
}

/* Title Styles */
h1 {
    text-align: center;
    color: #00a859 !important;
    font-family: system-ui !important;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 20px 10px;
    letter-spacing: 0.5px;
}

h3 {
    text-align: center;
    color: #5f5f5f !important;
    font-family: system-ui !important;
    font-size: 16px;
    font-weight: 400;
    margin: 0 20px 30px;
    line-height: 1.5;
}

/* Main Container */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Progress Indicator */
.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 40px;
    padding: 0 40px;
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d3d3d3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.progress-step.active {
    background: #00a859;
}

.progress-step.completed {
    background: #00a859;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #d3d3d3;
    margin: 0 -5px;
}

.progress-line.active {
    background: #00a859;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Input Container Styles */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a859;
    font-size: 18px;
    z-index: 1;
}

.input-container input,
.input-container textarea {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: system-ui;
    color: #333;
    transition: all 0.3s ease;
    background: white;
}

.input-container input:focus,
.input-container textarea:focus {
    outline: none;
    border-color: #00a859;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.input-container input::placeholder,
.input-container textarea::placeholder {
    color: #999;
    font-weight: 400;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.radio-label:hover {
    border-color: #00a859;
    background: #f0f9f5;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.radio-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    background: #00a859;
    border-color: #00a859;
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: #00a859;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #00a859;
    background: #f0f9f5;
}

.radio-text {
    font-size: 16px;
    color: #333;
    font-family: system-ui;
    transition: all 0.3s ease;
}

/* Payment Mode Selection Styles */
.payment-title {
    text-align: center;
    color: #333;
    font-family: system-ui;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/* Force 2-column layout on all screen sizes */
@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 90px;
}

.payment-option:hover {
    border-color: #00a859;
    background: #f0f9f5;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-check {
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.payment-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00a859;
    transition: transform 0.2s ease;
}

.payment-option input[type="radio"]:checked ~ .payment-check {
    border-color: #00a859;
}

.payment-option input[type="radio"]:checked ~ .payment-check::after {
    transform: translate(-50%, -50%) scale(1);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #00a859;
    background: #f0f9f5;
}

.payment-logos-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.payment-image {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.payment-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.payment-option-full {
    grid-column: 1 / -1;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.next-button-flex {
    flex: 1;
    padding: 16px;
    background: #00a859;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: system-ui;
    letter-spacing: 0.5px;
}

.next-button-flex:hover {
    background: #008a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

.next-button-flex:active {
    transform: translateY(0);
}

/* Select Container Styles */
.select-container {
    position: relative;
    margin-bottom: 20px;
}

.select-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a859;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 14px;
}

.custom-select {
    width: 100%;
    padding: 15px 40px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: system-ui;
    color: #333;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.custom-select:focus {
    outline: none;
    border-color: #00a859;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.custom-select option {
    padding: 10px;
    background: white;
    color: #333;
}

.custom-select option:disabled {
    color: #999;
}

.custom-select:invalid {
    color: #999;
}

.custom-select:valid {
    color: #333;
}

/* Textarea specific */
.input-container textarea {
    min-height: 100px;
    resize: vertical;
    padding-top: 15px;
}

/* Icon positioning for textarea - multiple selectors for compatibility */
.input-container:has(textarea) i,
.input-container .fa-pen {
    top: 20px;
    transform: none;
}

/* Radio Options */
.radio-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #00a859;
    cursor: pointer;
}

.radio-option label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

/* Submit Button */
button[type="submit"],
.user-form button {
    width: 100%;
    padding: 16px;
    background: #00a859;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: system-ui;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover,
.user-form button:hover {
    background: #008a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

button[type="submit"]:active,
.user-form button:active {
    transform: translateY(0);
}

/* Back Button */
.back-button {
    width: 80px;
    padding: 14px;
    background: white;
    color: #00a859;
    border: 2px solid #00a859;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background: #f0f9f5;
}

/* Footer Styles */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.6;
}

footer p:first-child {
    font-weight: 600;
    font-size: 14px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader img {
    width: 100px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 14px;
    }
    
    .form-container {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .input-container input,
    .input-container textarea {
        font-size: 14px;
        padding: 13px 13px 13px 45px;
    }
    
    .input-container i {
        font-size: 16px;
        left: 13px;
    }
    
    .custom-select {
        font-size: 14px;
        padding: 13px 40px 13px 45px;
    }
    
    .select-container i {
        font-size: 16px;
        left: 13px;
    }
    
    .radio-label {
        padding: 12px 15px;
        min-width: 120px;
    }
    
    .radio-text {
        font-size: 14px;
    }
    
    .radio-custom {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
    
    .payment-grid {
        gap: 10px;
    }
    
    .payment-option {
        padding: 12px 8px;
        min-height: 65px;
    }
    
    .payment-image {
        max-width: 70px;
        max-height: 28px;
    }
    
    .payment-check {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .payment-check::after {
        width: 10px;
        height: 10px;
    }
    
    .payment-text {
        font-size: 14px;
    }
    
    .payment-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    button[type="submit"],
    .user-form button {
        font-size: 16px;
        padding: 14px;
    }
    
    .progress-container {
        padding: 0 20px;
    }
    
    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 15px;
    }
    
    .payment-grid {
        gap: 10px;
    }
    
    .payment-option {
        padding: 15px 10px;
        min-height: 70px;
    }
    
    .payment-image {
        max-width: 80px;
        max-height: 30px;
    }
    
    .payment-check {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .payment-check::after {
        width: 12px;
        height: 12px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    footer {
        font-size: 12px;
    }
    
    .radio-options {
        flex-direction: column;
        gap: 12px;
    }
}

/* Additional Enhancements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #00a859;
    color: white;
}

::-moz-selection {
    background: #00a859;
    color: white;
}