/* General Reset & Font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap'); /* Example font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif; /* Ensure consistent base font */
}

/* Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Use min-height to allow scrolling if content overflows */
    background-color: #f0f4f8; /* Lighter background */
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 10px 0; /* Add some vertical padding */
}

/* --- Sidebar Styling (Duplicated - Consider moving to styles.css) --- */
/* Basic sidebar placeholder styles if needed */
.side-bar { display: none; } /* Assume sidebar is handled by styles.css & JS */
.mobile-menu-icon { display: none; } /* Assume handled by styles.css & JS */
.nav-overlay { display: none; } /* Assume handled by styles.css & JS */
/* --- End Duplicated Styles --- */

/* Container Styling */
.container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Adjust column ratio if needed */
    width: 100%;
    max-width: 1200px; /* Max overall width */
    min-height: 95vh; /* Allow container to be slightly less than viewport height */
    overflow: hidden; /* Prevent container overflow */
    background-color: #fff; /* White background for container */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px; /* Add margin around container */
}

.left-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px; /* More padding */
    background: linear-gradient(135deg, #0054a6, #002366); /* Gradient background */
    color: white;
    border-radius: 15px 0 0 15px; /* Rounded corners on one side */
}

.right-column {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to top */
    padding: 10px; /* Less padding, main-content has more */
    overflow-y: auto; /* Allow only right column to scroll */
    max-height: 95vh; /* Match container height */
}

/* Left Column Content */
.left-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 400px; /* Limit size */
    text-align: center;
}

.left-logo .logo {
    width: clamp(200px, 60%, 300px); /* Responsive logo size */
    height: auto;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
}

.logo-text h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem); /* Responsive font size */
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    animation: fadeIn 1.5s ease;
}

.logo-text p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 10px;
    animation: fadeIn 1.5s ease;
}


/* Right Column Main Content */
.main-content {
    width: 100%;
    max-width: 600px; /* Slightly wider form area */
    padding: 30px 40px; /* Adjust padding */
    text-align: center;
    background-color: transparent; /* Make transparent, container has background */
    border-radius: 0; /* Remove radius if container has it */
    box-shadow: none; /* Remove shadow if container has it */
    margin: 0;
    overflow-y: auto; /* Enable scrolling within this area if needed */
    /* Custom Scrollbar (Optional) */
    scrollbar-width: thin;
    scrollbar-color: #0054a6 #f0f4f8;
}
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-track { background: #f0f4f8; border-radius: 4px;}
.main-content::-webkit-scrollbar-thumb { background-color: #0054a6; border-radius: 4px; border: 2px solid #f0f4f8; }


.main-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem); /* Responsive heading */
    color: #002366;
    margin-bottom: 25px; /* More space */
    animation: fadeIn 1s ease;
}

/* Message Area */
.message-area {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: left;
    animation: fadeIn 0.5s ease;
}
.message-area.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.message-area.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


/* Form Styling */
.register-form {
    background-color: transparent; /* Form itself is transparent */
    padding: 0; /* No padding needed if sections have it */
    border-radius: 0;
    box-shadow: none;
    max-width: 100%; /* Use full width */
    margin: 0 auto;
    text-align: left;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff; /* White background for sections */
    border-radius: 12px; /* Rounded corners for sections */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef; /* Light border */
    animation: fadeInUp 0.5s ease forwards; /* Animation */
    opacity: 0; /* Start hidden for animation */
}
/* Stagger animation */
.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; }
/* Adjust animation delay for the sections after the mobile header is inserted */
.register-form > .form-section:nth-of-type(1) { animation-delay: 0.1s; }
.register-form > .form-section:nth-of-type(2) { animation-delay: 0.2s; }
.register-form > .form-section:nth-of-type(3) { animation-delay: 0.3s; }


.form-section h3 {
    color: #002366;
    font-size: 1.3rem; /* Slightly larger section titles */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0054a6;
    position: relative; /* For potential pseudo-elements */
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
    position: relative; /* Needed for absolute elements like icons/errors */
}
.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500; /* Slightly lighter weight */
    margin-bottom: 8px; /* More space */
    color: #343a40; /* Darker label color */
    font-size: 0.95rem;
}
.form-group label .required {
    color: #dc3545; /* Red asterisk */
    margin-left: 2px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px; /* Consistent padding */
    border: 1px solid #ced4da; /* Standard border color */
    border-radius: 6px; /* Standard radius */
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff; /* Ensure background is white */
    color: #212529; /* Default text color */
}

.form-group input::placeholder {
    color: #6c757d; /* Lighter placeholder text */
    opacity: 1; /* Ensure it's visible */
}

.form-group select {
     appearance: none; /* Remove default arrow */
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E"); /* Custom arrow */
     background-repeat: no-repeat;
     background-position: right 15px center;
     background-size: 1em;
     padding-right: 40px; /* Space for arrow */
}
/* Style for disabled option in select */
.form-group select option[disabled] {
    color: #6c757d;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #0054a6;
    box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.15);
    outline: none;
}
/* Readonly input style */
.form-group input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
    border-color: #ced4da;
}


/* Validation Styling */
.error-message { /* Generic error message class */
    color: #dc3545; /* Bootstrap danger color */
    font-size: 0.8rem;
    margin-top: 4px;
    display: none; /* Hide by default, shown by JS */
    font-weight: 500;
    width: 100%; /* Ensure it takes full width */
}

/* Input validation states */
/* Apply to input/select directly or within password container */
.form-group input.invalid,
.form-group select.invalid,
.receipt-section input.invalid, /* For file input */
.password-container input.invalid {
    border-color: #dc3545 !important; /* Ensure invalid border overrides focus */
    background-image: none; /* Remove potential valid checkmark */
}

.form-group input.valid,
.form-group select.valid,
.receipt-section input.valid, /* For file input */
.password-container input.valid {
    border-color: #198754 !important; /* Bootstrap success color */
     /* Optional: Add a subtle checkmark - adjust path/SVG */
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    padding-right: calc(1.5em + .75rem); Adjust padding if using icon */
}
/* Keep select arrow visible when valid */
.form-group select.valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: right 15px center, center right 2.5rem; /* Position arrow and check */
    background-size: 1em, 16px 16px; /* Size arrow and check */
    padding-right: 4rem; /* Adjust padding for both icons */
}


/* Show error message when invalid class is present */
/* Select the error message following an invalid input/select/container */
.form-group input.invalid ~ .error-message,
.form-group select.invalid ~ .error-message,
.password-container input.invalid ~ .error-message, /* For password */
.receipt-section input.invalid ~ .error-message /* For file upload */
{
    display: block;
}

/* Password Container Specifics */
.password-container {
    position: relative;
    width: 100%;
}
.password-container input#password {
    padding-right: 45px; /* Ensure space for the button */
}
.password-container .password-toggle-btn {
    position: absolute;
    right: 1px; /* Position inside border */
    top: 1px; /* Position inside border */
    bottom: 1px; /* Position inside border */
    width: 40px; /* Button width */
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d; /* Icon color */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0 6px 6px 0; /* Match input radius */
    transition: color 0.2s ease;
}
.password-container .password-toggle-btn:hover,
.password-container .password-toggle-btn:focus {
    color: #0054a6;
    outline: none;
}
.password-container .password-toggle-btn i {
    font-size: 1.1rem;
}

/* Date Picker (Flatpickr) */
.flatpickr-input {
    background-color: #fff !important; /* Override readonly background */
    cursor: pointer;
}

/* Category Display */
.category-display {
    margin: 15px 0;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 6px;
    color: #0054a6;
    font-weight: 500;
    text-align: center;
    border: 1px solid #b3e5fc;
    animation: fadeIn 0.3s ease;
}


/* Session Type Cards */
.pricing-cards {
    display: flex;
    flex-direction: column; /* Stack on mobile/default */
    align-items: stretch; /* Make cards full width */
    gap: 15px;
    margin: 20px 0; /* Remove horizontal auto margin */
    width: 100%;
}

.pricing-card {
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    border: 2px solid #e9ecef; /* Default border */
    text-align: left;
}

.pricing-card .badge { /* Moved from ::before for better control */
    position: absolute;
    top: -12px;
    right: 15px;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-header { text-align: center; margin-bottom: 15px; }
.price-header h4 { color: #002366; font-size: 1.3rem; margin-bottom: 5px; font-weight: 600; }
.price { font-size: 1.6rem; color: #0054a6; font-weight: bold; }
.period { font-size: 0.9rem; color: #6c757d; margin-left: 5px;}
.features { list-style: none; padding: 0; margin: 15px 0 0 0; }
.features li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #495057; font-size: 0.9rem; }
.features li i.fa-check { color: #28a745; min-width: 16px; font-size: 0.9em;}

/* Card selection states */
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #adb5bd;
}
.pricing-card.selected {
    border-color: #0054a6; /* Blue border for selected */
    box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.2); /* Blue glow */
}
/* Override border for complete package when selected */
.pricing-card.complete.selected {
    border-color: #28a745; /* Green border for complete */
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2); /* Green glow */
}
.pricing-card.complete.selected .badge {
    background-color: #28a745; /* Match badge */
 }

/* Error message specific to session selection */
.session-error {
     color: #dc3545;
     font-size: 0.8rem;
     margin-top: 10px;
     text-align: center;
     display: none; /* Hide by default */
}

/* Payment Details Section */
.payment-options, .payment-instructions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
    animation: fadeIn 0.3s ease;
}
.payment-details h4, .instruction-box h4, .note-box h4 {
    color: #002366;
    font-size: 1.1rem; /* Consistent header size */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}
.payment-details h4 i, .instruction-box h4 i, .note-box h4 i {
    color: #0054a6;
    font-size: 1.2em;
    margin-right: 5px;
}
.note-box h4 i { color: #ffc107; } /* Note icon color */

.bank-accounts, .ewallet-accounts { display: flex; flex-direction: column; gap: 10px; }
.bank-option, .ewallet-option { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 10px 15px; border-radius: 6px; border: 1px solid #dee2e6; transition: border-color 0.2s ease; }
.bank-option:hover, .ewallet-option:hover { border-color: #0054a6; }
.bank-option strong, .ewallet-option strong { color: #343a40; min-width: 80px; font-weight: 500; font-size: 0.9rem; }
.bank-option span, .ewallet-option span { color: #495057; font-family: monospace; font-size: 1rem; flex-grow: 1; margin: 0 10px; }
.copy-btn { background: transparent; border: none; color: #0054a6; cursor: pointer; padding: 5px; border-radius: 50%; transition: background-color 0.2s ease; }
.copy-btn:hover { background: #e3f2fd; }
.copy-btn i { font-size: 1rem; display: block; /* Prevent layout shift */ }
.account-name { margin-top: 15px; color: #495057; font-style: italic; text-align: center; font-size: 0.9rem; }

/* Cash Instructions / Admin Note */
.instruction-box, .note-box { border-left-width: 5px; border-left-style: solid;}
.instruction-box {
    border-left-color: #17a2b8; /* Info color */
    background-color: #e2f8fb;
    padding: 15px;
}
.instruction-box h4 i { color: #17a2b8; }
.instruction-box ul { list-style: none; padding-left: 5px; margin: 10px 0 0 0; }
.instruction-box li { margin-bottom: 8px; display: flex; align-items: start; gap: 10px; color: #0c5460; font-size: 0.9rem; line-height: 1.5; }
.instruction-box li::before {
    content: "\f058"; /* FontAwesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #17a2b8;
    margin-right: 8px;
    font-size: 0.9em;
    margin-top: 2px;
}


.note-box {
    border-left-color: #ffc107; /* Warning color */
    background-color: #fff8e1;
    margin: 20px 0 0 0; /* Only top margin */
    padding: 20px;
    border-radius: 8px;
    width: 100%;
}
.note-box h4 i { color: #ffc107; }
.note-box p {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    color: #664d03; /* Darker warning text */
    line-height: 1.5;
}

/* File Upload Styling */
.receipt-section { margin-top: 20px; } /* Container for label, upload, preview, error */

.upload-container { border: 2px dashed #adb5bd; border-radius: 8px; padding: 25px; text-align: center; position: relative; transition: border-color 0.2s ease, background-color 0.2s ease; background: #fff; cursor: pointer; margin-top: 8px; /* Space from label */}
.upload-container:hover, .upload-container.highlight { border-color: #0054a6; background: #f8f9fa; }
/* Hide actual input but keep it accessible */
.upload-container input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.upload-label { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #495057; pointer-events: none; /* Allow clicks to pass through to container */}
.upload-label i { font-size: 2rem; color: #0054a6; margin-bottom: 5px; }
.upload-label span { font-size: 0.95rem; font-weight: 500; }
.file-help { display: block; margin-top: 10px; color: #6c757d; font-size: 0.8rem; text-align: center; }

/* File Upload Preview */
.upload-preview {
    margin-top: 15px;
    display: none; /* Hidden by default */
    text-align: center;
}

.preview-container { /* Container for image and remove button */
    position: relative;
    display: inline-block; /* So it only takes needed width */
    max-width: 100%; /* Prevent overflow */
}

.upload-preview img {
    display: block; /* Prevents extra space below image */
    max-width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Limit preview height */
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.remove-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10; /* Ensure it's above image */
}
.remove-preview:hover { background: #c82333; }
.remove-preview i { font-size: 0.9rem; }


/* Form Controls */
.form-controls { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.register-button {
    background: linear-gradient(45deg, #0054a6, #002366); /* Darker gradient */
    color: white; padding: 14px 35px; border: none; border-radius: 30px; /* More rounded */
    font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    margin-bottom: 15px; width: 100%; max-width: 320px; /* Adjust width */
    box-shadow: 0 4px 15px rgba(0, 84, 166, 0.2);
}
.register-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 84, 166, 0.3); }
.register-button:active { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0, 84, 166, 0.2); }

.login-link { display: inline-block; color: #0054a6; text-decoration: none; font-weight: 500; position: relative; padding: 5px 0; transition: color 0.2s ease; }
.login-link:after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background: linear-gradient(90deg, #0054a6, #00a6ff); transition: width 0.3s ease, left 0.3s ease; transform: translateX(-50%); }
.login-link:hover { color: #002366; }
.login-link:hover:after { width: 100%; left: 0; transform: translateX(0); }

.admin-register-button {
    background-color: transparent; /* Make transparent */
    color: #dc3545; /* Red text */
    border: 1px solid #dc3545; /* Red border */
    padding: 8px 16px;
    margin: 15px auto 0 auto; /* Center and add top margin */
    cursor: pointer; font-size: 0.9rem; display: block; width: fit-content;
    border-radius: 20px; transition: all 0.3s ease;
}
.admin-register-button:hover { background-color: rgba(220, 53, 69, 0.1); border-color: #b02a37; color: #b02a37; }


/* SweetAlert Copy Toast */
.copy-alert.swal2-popup {
    background: #002366 !important;
    color: white !important;
    font-size: 0.9rem !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}
.copy-alert .swal2-title { font-size: 1rem !important; padding: 0 !important; margin: 0 !important; }
.copy-alert .swal2-html-container { font-size: 0.9rem !important; margin: 5px 0 0 0 !important; padding: 0 !important; }
.copy-alert .swal2-timer-progress-bar { background: #0054a6 !important; }

/* Mobile-specific toast styling */
.copy-alert.mobile-toast {
    width: 80% !important; /* Wider toast on mobile */
    margin: 0 auto !important;
    font-size: 14px !important;
    padding: 15px !important;
    bottom: 50px !important; /* Position from bottom */
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
}

/* Keyframe Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }


/* --- START: Mobile Header Styles --- */
.mobile-header {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column; /* Stack logo and text vertically */
    align-items: center; /* Center items horizontally */
    background-color: #0054a6; /* Blue background */
    color: white; /* White text */
    padding: 20px 15px; /* Padding inside the header */
    border-radius: 10px; /* Slightly rounded corners */
    margin-bottom: 25px; /* Space below the header */
    text-align: center; /* Center text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    animation: fadeIn 0.5s ease; /* Fade in effect */
}

.mobile-logo {
    width: 80px; /* Adjust logo size as needed */
    height: auto;
    margin-bottom: 10px; /* Space between logo and text */
}

.mobile-header-text h4 {
    font-size: 1.1rem; /* Adjust heading size */
    font-weight: 600;
    margin: 0 0 5px 0; /* Spacing */
    line-height: 1.3;
}

.mobile-header-text p {
    font-size: 0.9rem; /* Adjust paragraph size */
    font-style: italic;
    opacity: 0.9; /* Slightly less prominent */
    margin: 0;
    line-height: 1.4;
}
/* --- END: Mobile Header Styles --- */


/* --- Responsive Design Adjustments --- */
@media (max-width: 992px) {
    .container { grid-template-columns: 1fr; max-width: 700px; margin: 20px; min-height: 0; }
    .left-column { display: none; } /* Hide left column on tablets */
    .right-column { border-radius: 15px; max-height: none; padding: 5px;} /* Round corners if left is hidden, remove height limit */
    .main-content { max-height: none; padding: 30px; } /* Remove height limit, adjust padding */

    /* Show the mobile header */
    .mobile-header {
        display: flex; /* Show the header */
    }
}

@media (max-width: 768px) {
    body { padding: 0; }
    .container { margin: 0; width: 100%; border-radius: 0; min-height: 100vh; } /* Full screen on mobile */
    .right-column { border-radius: 0; padding: 5px; }
    .main-content { padding: 20px 15px; border-radius: 0; box-shadow: none; max-height: none; }
    .form-section { padding: 20px; }
    .pricing-cards { gap: 10px; }
    .pricing-card { padding: 15px; }
    .price-header h4 { font-size: 1.2rem; }
    .price { font-size: 1.4rem; }
    .features li { font-size: 0.85rem; }
    .payment-options, .payment-instructions, .note-box { padding: 15px; }
    .bank-option, .ewallet-option { flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px;}
    .copy-btn { align-self: flex-end; }
    .register-button { padding: 12px 30px; font-size: 1rem; }
    .copy-alert {
        width: 80% !important;
        margin: 0 auto !important;
        font-size: 14px !important;
    }

    /* Ensure the toast is clearly visible on mobile */
    .copy-alert.swal2-toast {
        background: rgba(0, 35, 102, 0.95) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
}

@media (max-width: 480px) {
    .main-content h2 { font-size: 1.6rem; margin-bottom: 20px;}
    .form-section h3 { font-size: 1.1rem; margin-bottom: 20px; }
    .form-group input, .form-group select { padding: 10px 12px; font-size: 0.95rem; }
    .form-group select { padding-right: 35px; } /* Adjust padding for arrow */
    .password-container input#password { padding-right: 40px; }
    .password-container .password-toggle-btn { width: 35px; }
    .pricing-card .badge { font-size: 0.7rem; padding: 3px 8px; top: -10px; right: 10px;}
    .upload-label span { font-size: 0.9rem; }
    .file-help { font-size: 0.75rem; }
    .register-button { padding: 12px 25px; font-size: 1rem; }
    .login-link { font-size: 0.9rem; }

    /* Mobile header fine-tuning */
    .mobile-header {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    .mobile-logo {
        width: 70px;
    }
    .mobile-header-text h4 {
        font-size: 1rem;
    }
    .mobile-header-text p {
        font-size: 0.85rem;
    }

}

/* Touch-friendly adjustments - Remove hover effects */
@media (hover: none) {
    .pricing-card:hover { transform: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); border-color: #e9ecef; }
    .pricing-card.selected:hover { transform: none; } /* Remove selected hover scale */
    .pricing-card.selected { transform: none; } /* Keep selected styles without scale */
    .register-button:hover { transform: none; box-shadow: 0 4px 15px rgba(0, 84, 166, 0.2); }
    .copy-btn:hover { background: transparent; }
    .login-link:hover:after { width: 0; } /* Disable underline grow on hover */
}

