* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; min-height: 100vh; }

/* Top Bar */
.top-bar { background: #1a3a5c; padding: 8px 0; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar-brand { display: flex; align-items: center; gap: 10px; }
.top-bar-brand img { height: 35px; }
.top-bar-brand span { color: #fff; font-size: 14px; font-weight: 500; }
.top-bar-links { display: flex; gap: 15px; }
.top-bar-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 12px; }
.top-bar-links a:hover { color: #fff; }

/* Header */
.header { background: linear-gradient(135deg, #2c5f8a 0%, #1a3a5c 100%); padding: 20px 0; }
.header .container { display: flex; align-items: center; gap: 15px; }
.header-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.header-icon i { font-size: 24px; color: #fff; }
.header-text h1 { color: #fff; font-size: 20px; font-weight: 600; margin: 0; }
.header-text p { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0; }

/* Main Content */
.main-content { padding: 30px 0 60px; }

/* Form Card */
.form-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.08); overflow: hidden; max-width: 500px; margin: 0 auto; }
.form-header { background: #2c5f8a; padding: 18px 25px; display: flex; align-items: center; gap: 12px; }
.form-header i { font-size: 20px; color: #fff; }
.form-header h2 { color: #fff; font-size: 16px; font-weight: 600; margin: 0; }
.form-body { padding: 25px; }

/* Step Indicator */
.step-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; }
.step { display: flex; align-items: center; gap: 8px; }
.step-number { width: 30px; height: 30px; border-radius: 50%; background: #e0e0e0; color: #999; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.step.active .step-number { background: #2c5f8a; color: #fff; }
.step.completed .step-number { background: #048b35; color: #fff; }
.step-label { font-size: 12px; color: #999; font-weight: 500; }
.step.active .step-label { color: #2c5f8a; }
.step.completed .step-label { color: #048b35; }
.step-line { width: 40px; height: 2px; background: #e0e0e0; align-self: center; }
.step-line.active { background: #2c5f8a; }

/* Form Controls */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: #2c5f8a; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group label .required { color: #dc3545; }
.form-control-custom { width: 100%; height: 44px; border: 1.5px solid #dde1e6; border-radius: 8px; padding: 0 14px; font-size: 14px; color: #333; transition: border-color 0.3s, box-shadow 0.3s; outline: none; }
.form-control-custom:focus { border-color: #2c5f8a; box-shadow: 0 0 0 3px rgba(44,95,138,0.1); }
.form-control-custom::placeholder { color: #aaa; }
textarea.form-control-custom { height: auto; padding: 12px 14px; resize: none; }

/* Buttons */
.btn-primary-custom { width: 100%; height: 46px; background: linear-gradient(135deg, #048b35 0%, #037a2e 100%); border: none; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(4,139,53,0.4); }
.btn-primary-custom:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary-custom { width: 100%; height: 46px; background: #6c757d; border: none; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; margin-top: 10px; }
.btn-secondary-custom:hover { background: #5a6268; }

/* Pages */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* Modal */
.modal-header-custom { background: #2c5f8a; }
.modal-header-custom .modal-title { color: #fff; font-weight: 600; }
.modal-header-custom .btn-close { filter: brightness(0) invert(1); }
.modal-body-custom { padding: 25px; text-align: center; }
.modal-body-custom .flag { font-size: 40px; margin-bottom: 15px; }
.modal-body-custom h5 { color: #2c5f8a; font-weight: 700; margin-bottom: 12px; }
.modal-body-custom p { color: #555; font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.modal-body-custom .arabic { direction: rtl; font-size: 13px; color: #666; margin-top: 10px; }
.modal-footer-custom { border-top: 1px solid #eee; padding: 15px 25px; justify-content: center; }
.btn-continue { background: #048b35; border: none; color: #fff; padding: 10px 40px; border-radius: 8px; font-weight: 600; }
.btn-continue:hover { background: #037a2e; color: #fff; }

/* Success Page */
.success-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.08); overflow: hidden; max-width: 500px; margin: 0 auto; text-align: center; }
.success-icon-area { padding: 40px 25px 20px; }
.success-circle { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #048b35 0%, #037a2e 100%); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: popIn 0.5s ease-out; }
@keyframes popIn { from { transform: scale(0); } 50% { transform: scale(1.1); } to { transform: scale(1); } }
.success-circle i { font-size: 45px; color: #fff; }
.success-title { font-size: 22px; font-weight: 700; color: #1a3a5c; margin-bottom: 8px; }
.success-subtitle { font-size: 14px; color: #666; line-height: 1.6; padding: 0 20px; }
.info-card { background: #f8f9fa; border-radius: 10px; margin: 20px 25px; padding: 18px; }
.info-card .icon { width: 40px; height: 40px; background: #2c5f8a; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.info-card .icon i { color: #fff; font-size: 16px; }
.info-card p { color: #555; font-size: 13px; line-height: 1.6; margin: 0; }
.info-card strong { color: #1a3a5c; }
.success-footer { padding: 20px 25px 30px; }
.btn-home { width: 100%; height: 46px; background: linear-gradient(135deg, #2c5f8a 0%, #1a3a5c 100%); border: none; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; text-decoration: none; }
.btn-home:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(44,95,138,0.4); color: #fff; }

/* Footer */
.footer-bar { background: #1a3a5c; padding: 15px 0; text-align: center; }
.footer-bar p { color: rgba(255,255,255,0.6); font-size: 12px; margin: 0; }

/* Responsive */
@media (max-width: 576px) {
  .top-bar-links { display: none; }
  .header-text h1 { font-size: 17px; }
  .form-body { padding: 20px; }
  .step-label { display: none; }
  .step-line { width: 25px; }
  .success-title { font-size: 19px; }
}