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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    /* background: linear-gradient(135deg, #0389ff 0%, #82beff 100%); */
    min-height: 100vh;
    margin-bottom: 107px;
}

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

/* Simple Header */
.simple-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.simple-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0389ff;
}

.logo i {
    font-size: 2rem;
}

/* Logo animation */
.logo {
    animation: logoFloat 3s ease-in-out infinite;
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.hero-image {
    margin-top: 3rem;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffa500;
}

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

/* Registration Page */
.registration-page {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #0389ff 0%, #82beff 100%); */
    /* padding: 20px; */
    box-sizing: border-box;
}

.page-content {
    background: white;
    margin: 0 auto;
    max-width: 800px;
    border-radius: 20px;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, #0389ff, #82beff);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after {
    background: #0389ff;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #0389ff;
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #0389ff;
    font-weight: 600;
}

/* Form Steps */
.registration-form {
    padding: 2rem;
    padding-bottom: 8rem; /* More space for fixed navigation */
}

.form-step {
    display: none;
    padding-bottom: 2rem; /* Space between steps */
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.step-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 2rem; /* Space between steps */
}

.welcome-icon {
    font-size: 4rem;
    color: #0389ff;
    margin-bottom: 1rem;
}

.step-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.step-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: #0389ff;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0389ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Phone input specific styling - Force override all browser defaults */
#phoneNumber,
input[name="phoneNumber"],
input[id="phoneNumber"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: 'Cairo', sans-serif !important;
    text-align: left !important;
    direction: ltr !important;
    background: white !important;
    color: #333 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#phoneNumber::-webkit-outer-spin-button,
#phoneNumber::-webkit-inner-spin-button,
input[name="phoneNumber"]::-webkit-outer-spin-button,
input[name="phoneNumber"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

#phoneNumber[type=number],
input[name="phoneNumber"][type=number] {
    -moz-appearance: textfield !important;
}

/* Force remove any automatic formatting */
#phoneNumber::before,
#phoneNumber::after,
input[name="phoneNumber"]::before,
input[name="phoneNumber"]::after {
    content: none !important;
    display: none !important;
}

/* Disable any browser extensions or auto-formatting */
#phoneNumber,
input[name="phoneNumber"] {
    -webkit-text-security: none !important;
    -moz-text-security: none !important;
    text-security: none !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

/* Override any global input styles */
.form-group input[name="phoneNumber"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}



/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.course-option {
    cursor: pointer;
    display: block;
}

.course-option input {
    display: none;
}

.course-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-option input:checked + .course-card {
    border-color: #0389ff;
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.course-option input:checked + .course-card::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #0389ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Python Default Course */
.course-option input:disabled + .course-card.python-default {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
    position: relative;
}

.course-option input:disabled + .course-card.python-default::before {
    content: '🔒';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.default-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
}

.course-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.course-icon i {
    font-size: 3rem;
    color: #0389ff;
}

.course-info h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.course-info p {
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-details {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 10px;
}

.duration {
    color: #0389ff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Help Text */
.help-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    background: #f8f9fa;
}

.radio-option input,
.checkbox-option input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option input:checked + .radio-custom {
    border-color: #0389ff;
    background: #0389ff;
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-option input:checked + .checkbox-custom {
    border-color: #0389ff;
    background: #0389ff;
}

.checkbox-option input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Courses Summary */
.courses-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.course-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.course-summary-item:last-child {
    margin-bottom: 0;
}

.course-summary-name {
    font-weight: 600;
    color: #333;
}

.course-summary-details {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Registration Summary */
.registration-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem; /* Extra space before navigation */
    border: 2px solid #0389ff;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0389ff;
    border-top: 2px solid #0389ff;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Pricing Info */
.pricing-info {
    text-align: center;
    /* margin-bottom: 30rem; Extra space before navigation */
}

.price-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #0389ff;
    max-width: 500px;
    margin: 0 auto;
}

.price-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-header h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.5rem;
    color: #0389ff;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    color: #0389ff;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    color: #666;
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.feature i {
    color: #0389ff;
    font-size: 1.1rem;
    width: 20px;
}

.feature span {
    color: #333;
    font-weight: 500;
}

/* Registration Action */
.registration-action {
    text-align: center;
    margin: 2rem 0;
    margin-bottom: 3rem; /* Extra space before navigation */
}

.btn-register {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-register:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-register:active {
    transform: translateY(0);
}

/* Package Card */
.package-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #0389ff;
}

.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-header h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.5rem;
    color: #0389ff;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    color: #0389ff;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    color: #666;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Form Navigation */
.form-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e9ecef;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    /* Set container width for proper distribution */
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    justify-content: center;
    min-height: 50px;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0389ff, #0056b3);
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 20px;
    /* Take 80% of available space */
    flex: 0 0 80%;
    max-width: 80%;
    box-shadow: 0 8px 25px rgba(3, 137, 255, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #0389ff);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(3, 137, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(3, 137, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    padding: 18px 18px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50%;
    /* Take 20% of available space */
    flex: 0 0 20%;
    max-width: 20%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    border: 2px solid transparent;
    position: relative;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Disabled secondary button styling */
.btn-secondary:disabled {
    background: #adb5bd;
    color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-secondary:disabled:hover {
    background: #adb5bd;
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-secondary:disabled i {
    opacity: 0.6;
}

/* Arrow icon styling for secondary button */
.btn-secondary i {
    font-size: 1.3rem;
    margin: 0;
    transition: all 0.3s ease;
}

/* Button icon animations */
.btn i {
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
}

.btn:hover i {
    transform: scale(1.1);
}

.btn-primary:hover i {
    transform: translateX(-3px) scale(1.1);
}

.btn-secondary:hover i {
    transform: translateX(3px) scale(1.1);
}

.btn-success:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Button focus states */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 137, 255, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(3, 137, 255, 0.3);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #28a745);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.success-details p {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-details strong {
    color: #0389ff;
}

.redirect-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #1976d2;
}

.redirect-info i {
    font-size: 1.2rem;
    color: #2196f3;
}

.redirect-info span {
    font-weight: 600;
    font-size: 1rem;
}

/* Gender Options */
.gender-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.gender-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-card {
    position: relative;
    width: 120px;
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #dee2e6;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gender-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #adb5bd;
}

.gender-icon {
    font-size: 2.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.gender-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.gender-check {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Male specific styling (ولد) */
.gender-option input[type="radio"][value="male"]:checked ~ .gender-card {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.gender-option input[type="radio"][value="male"]:checked ~ .gender-card .gender-icon {
    color: #007bff;
}

.gender-option input[type="radio"][value="male"]:checked ~ .gender-card .gender-text {
    color: #0056b3;
}

.gender-option input[type="radio"][value="male"]:checked ~ .gender-card .gender-check {
    opacity: 1;
    transform: scale(1);
}

/* Female specific styling (بنت) */
.gender-option input[type="radio"][value="female"]:checked ~ .gender-card {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.gender-option input[type="radio"][value="female"]:checked ~ .gender-card .icon {
    color: #e91e63;
}

.gender-option input[type="radio"][value="female"]:checked ~ .gender-card .gender-text {
    color: #c2185b;
}

.gender-option input[type="radio"][value="female"]:checked ~ .gender-card .gender-check {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .registration-form {
        padding: 1.5rem;
        padding-bottom: 6rem;
    }
    
    .form-navigation {
        padding: 1rem;
        gap: 1rem;
        /* Force horizontal layout on mobile */
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        /* Ensure proper distribution on mobile */
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 12px;
        min-height: 45px;
    }
    
    .btn-primary {
        padding: 16px 35px;
        font-size: 1.1rem;
        /* Maintain 80% on mobile */
        flex: 0 0 80% !important;
        max-width: 80% !important;
        border-radius: 18px;
    }
    
    .btn-secondary {
        padding: 16px 16px;
        font-size: 1.1rem;
        /* Maintain 20% on mobile */
        flex: 0 0 20% !important;
        max-width: 20% !important;
        height: 52px;
        border-radius: 50%;
    }
    
    .btn-success {
        padding: 16px 35px;
        font-size: 1.1rem;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.4rem;
    }
    
    .registration-form {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
    .form-navigation {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        /* Ensure proper distribution on small mobile */
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 10px;
        min-height: 42px;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
        /* Maintain 80% on small mobile */
        flex: 0 0 80% !important;
        max-width: 80% !important;
        border-radius: 16px;
    }
    
    .btn-secondary {
        padding: 14px 14px;
        font-size: 1rem;
        /* Maintain 20% on small mobile */
        flex: 0 0 20% !important;
        max-width: 20% !important;
        height: 48px;
        /* border-radius: 50%; */
    }
    
    .btn-success {
        padding: 14px 30px;
        font-size: 1rem;
        border-radius: 16px;
    }
}
