/* =====================================================
   style_microsite.css
   NCEMA Microsite — Single Optimized Stylesheet
   Merged from: style_reg.css + ncema_style.css + inline styles
   Sections:
     1.  Font Faces
     2.  CSS Variables
     3.  Base Styles
     4.  Layout
     5.  Card Components
     6.  Divider
     7.  Buttons
     8.  Typography & Language Classes
     9.  Form Elements
     10. Modal Styles
     11. Dropdown (op_type)
     12. Footer
     13. Page-Specific Styles
     14. Utility
     15. Phone Input Support
     16. Responsive — Media Queries
   ===================================================== */

/* ===================== 1. FONT FACES ===================== */

@font-face {
  font-family: Gotham-Book;
  src: url("fonts/Gotham-Book.otf");
}
@font-face {
  font-family: Gotham;
  src: url("fonts/Gotham-Book.otf");
}
@font-face {
  font-family: Gotham-Bold;
  src: url("fonts/Gotham-Bold.otf");
}
@font-face {
  font-family: Gotham-Medium;
  src: url("fonts/Gotham-Medium.otf");
}
@font-face {
  font-family: Gotham-Light;
  src: url("fonts/Gotham-Font/Gotham-Light.otf");
}
@font-face {
  font-family: FrutigerLTArabic;
  src: url("fonts/FrutigerLTArabic-55Roman.ttf");
}
@font-face {
  font-family: FrutigerLTArabic-Roman;
  src: url("fonts/FrutigerLTArabic-55Roman.ttf");
}
@font-face {
  font-family: FrutigerLTArabic-Bold;
  src: url("fonts/FrutigerLTArabic-65Bold.ttf");
}
@font-face {
  font-family: FrutigerLTArabic-Light;
  src: url("fonts/FrutigerLTArabic-45Light.ttf");
}
@font-face {
  font-family: FrutigerLTArabic-Black;
  src: url("fonts/FrutigerLTArabic-75Black.ttf");
}

/* ===================== 2. CSS VARIABLES ===================== */

:root {
  --gold-dark: #8B6914;
  --gold-mid: #C9A84C;
  --gold-light: #E8C96A;
  --gold-text: #9A7228;
  --gold-text-light: #B8962E;
  --gold-border: #D4B86A;
  --bg-page: #f5f0e8;
  --error: #e05252;
}

/* ===================== 3. BASE STYLES ===================== */

body {
  background-color: var(--bg-page);
  min-height: 100vh;
  color: #000;
  font-family: "FrutigerLTArabic", "Gotham", sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../images_microsite/bg_img.png') center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ===================== 4. LAYOUT ===================== */

/* Background wave image */
.bg-wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* Gold accent bar at top of page */
.gold-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B6914 0%, #C9A84C 40%, #E8C96A 60%, #C9A84C 80%, #8B6914 100%);
  z-index: 100;
}

/* Centered main wrapper */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Logo block above card */
.main-logo {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 20;
}

.main-logo img {
  width: 80%;
}

/* ===================== 5. CARD COMPONENTS ===================== */

.reg-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(100, 70, 10, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(255, 255, 255, 0.97);
  position: relative;
  z-index: 10;
}

.reg-card-body {
  background: rgba(255, 255, 255, 0.97);
  padding: 2rem;
}

/* Card header with logo (used in vol_counter/login.php) */
.reg-card-header {
  background: #ffffff;
  border-bottom: 2px solid rgba(201, 168, 76, 0.25);
  padding: 1.25rem 2rem;
  text-align: center;
}

.reg-card-header img {
  height: 56px;
  width: auto;
}

/* ===================== 6. DIVIDER ===================== */

.divider-gold {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.5rem 0;
}

.divider-gold .line-left {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid));
  margin-right: 0.75rem;
}

.divider-gold .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-mid);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider-gold .line-right {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-mid), transparent);
  margin-left: 0.75rem;
}

/* ===================== 7. BUTTONS ===================== */

/* Primary gold gradient button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.625rem 2.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.btn-gold:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 105, 20, 0.3);
  transform: scale(1.02);
}

.btn-gold:active {
  transform: scale(0.98);
}

/* Back / outline button */
.btn-back {
  border: 1px solid var(--gold-mid);
  color: var(--gold-text);
  font-weight: 500;
  background: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s;
}

.btn-back:hover {
  background: #fffbf0;
  color: var(--gold-text);
}

/* Registration submit button */
.reg_btn {
  background-color: #DC3845;
  border-color: #DC3845;
  color: #fff;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif;
}

.reg_btn:hover {
  background-color: #DC3845;
  border-color: #DC3845;
  color: #fff;
}

/* Game action buttons (vol_counter — shown via show_game_button()) */
.game_buttons {
  border-radius: 20px;
  border: 1px solid #B8962E;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
  backdrop-filter: blur(21px);
  width: 200px;
  color: #fff;
}

.game_buttons_played {
  border-radius: 20px;
  border: 1px solid #fff;
  background: linear-gradient(124deg, var(--error) 22.38%, var(--gold-mid, 0.67) 90.38%);
  backdrop-filter: blur(21px);
  width: 200px;
  color: #fff;
}

/* Inline nav / back link (scanner/index.php, vol_counter/index.php) */
.game_reg_btn,
.game_reg_btn:hover {
  color: #fff;
  border-radius: 6px;
  border: 0px solid #fff;
  background: linear-gradient(124deg, rgba(255, 255, 255, 0.00) -22.38%, rgba(255, 255, 255, 0.04) 70.38%);
  backdrop-filter: blur(21px);
  margin-bottom: 2px;
  font-size: 18px;
}

/* Back arrow icon container (scanner/index.php, vol_counter/index.php) */
.back_to_registration_scan {
  border-radius: 6px;
  border: 1px solid #fff;
  background: linear-gradient(124deg, rgba(255, 255, 255, 0.00) -22.38%, rgba(255, 255, 255, 0.04) 70.38%);
  backdrop-filter: blur(21px);
  width: 35px;
  height: 35px;
  padding: 6px;
}

/* Modal confirm button */
.modal_save_but {
  border-radius: 10px !important;
  border: 1px solid #fff;
  background: linear-gradient(124deg, rgba(31, 226, 51, 0.67) -22.38%, rgba(47, 226, 31, 0.67) 70.38%);
  backdrop-filter: blur(21px);
}

/* Generic button base (used by phone-input country widget) */
button {
  color: #fff;
  background-color: #428BCA;
  border: 1px solid #357EBD;
  margin: 0;
  padding: 6px 20px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 100%;
}

button:hover {
  background-color: #3276B1;
  border-color: #285E8E;
  cursor: pointer;
}

/* ===================== 8. TYPOGRAPHY & LANGUAGE CLASSES ===================== */

.font-english {
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif !important;
}

.font-english-bold {
  font-family: "Gotham-Bold", "Gotham", Arial, sans-serif !important;
  font-weight: bold;
}

.font-english-medium {
  font-family: "Gotham-Medium", "Gotham", Arial, sans-serif !important;
}

.font-english-light {
  font-family: "Gotham-Light", "Gotham", Arial, sans-serif !important;
}

.font-arabic {
  font-family: "FrutigerLTArabic-Roman", "FrutigerLTArabic", Arial, sans-serif !important;
  direction: rtl;
}

.font-arabic-bold {
  font-family: "FrutigerLTArabic-Bold", "FrutigerLTArabic", Arial, sans-serif !important;
  font-weight: bold;
  direction: rtl;
}

.font-arabic-light {
  font-family: "FrutigerLTArabic-Light", "FrutigerLTArabic", Arial, sans-serif !important;
  direction: rtl;
}

.font-arabic-black {
  font-family: "FrutigerLTArabic-Black", "FrutigerLTArabic", Arial, sans-serif !important;
  font-weight: bold;
  direction: rtl;
}

.text-ar {
  color: var(--gold-text-light);
  direction: rtl;
  font-family: "FrutigerLTArabic-Roman", "FrutigerLTArabic", Arial, sans-serif;
}

/* ===================== 9. FORM ELEMENTS ===================== */

/* Row/column helpers */
.no_margins {
  margin-left: 0;
  margin-right: 0;
}

.reg_others {
  display: flex;
  flex-direction: column;
  padding: 5px;
  padding-bottom: 0;
  padding-top: 0;
  color: #5a4010;
  border-radius: 30px;
}

/* Field label (English) */
.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a4010;
  margin-bottom: 0.25rem;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif;
}

/* Field label (Arabic) */
.field-label-ar {
  font-size: 0.75rem;
  color: var(--gold-text-light);
  direction: rtl;
  font-family: "FrutigerLTArabic-Roman", "FrutigerLTArabic", Arial, sans-serif;
}

/* Gold-themed input / select */
.form-control.gold-input,
input.gold-input,
select.gold-input {
  border: 1.5px solid var(--gold-border);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: all 0.15s;
  margin-top: 1px;
  margin-bottom: 1px;
}

select.gold-input {
  display: block;
  width: 100%;
  color: #000;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8962E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-control.gold-input:focus,
input.gold-input:focus,
select.gold-input:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  outline: none;
}

/* Nationality / select dropdown */
.input_style_select {
  background-position: 0px -310px;
  border-radius: 7px;
  margin: 20px 1px;
  padding: 5px;
  color: #B8962E;
  font-size: 18px;
}

.input_style_select option {
  color: #B8962E;
}

/* Select placeholder states */
select.gold-input:has(option[value=""]:checked),
select.gold-input:not(:valid),
select.placeholder-shown {
  color: rgba(184, 150, 46, 0.7);
}

select.placeholder-hidden {
  color: #B8962E;
}

select.gold-input option[value=""] {
  color: rgba(184, 150, 46, 0.7);
}

select.gold-input option:not([value=""]) {
  color: #000;
}

/* Input placeholder text */
::placeholder {
  color: #B8962E;
  opacity: 0.7;
}

::-ms-input-placeholder {
  color: #B8962E;
  opacity: 0.7;
}

/* --- Search bar (vol_counter/index.php) --- */
.search_text,
.search_text:focus {
  border-radius: 10px;
  border: 1px solid #B8962E;
  border-right: 0px solid #B8962E !important;
  background: linear-gradient(124deg, rgba(255, 255, 255, 0.00) -22.38%, rgba(255, 255, 255, 0.04) 70.38%);
  backdrop-filter: blur(21px);
  color: #B8962E;
  font-size: 18px;
}

.search_button {
  border-radius: 0px !important;
  border: 1px solid #B8962E;
  border-left: 0px solid #B8962E !important;
  background: linear-gradient(124deg, rgba(255, 255, 255, 1.00) -22.38%, rgba(255, 255, 255, 1.26) 70.38%);
  backdrop-filter: blur(21px);
  color: #B8962E;
}

.search_refresh {
  border-radius: 10px;
  border: 1px solid #B8962E;
  background: linear-gradient(124deg, rgba(255, 0, 0, 0.00) -22.38%, rgba(255, 255, 255, 0.04) 70.38%);
  backdrop-filter: blur(21px);
  color: #B8962E;
}

/* --- User / badge card text (vol_counter/index.php) --- */
.badge_username {
  font-size: 20px;
  font-weight: bolder;
}

.badge_other_lbl {
  font-size: 14px;
  font-weight: 700;
}

.badge_info_txt {
  font-size: 14px;
  font-weight: 600;
}

/* Inline validation error messages */
.reg_error {
  font-size: 14px;
  margin-left: 12px;
}

/* --- Terms & Conditions modal content --- */
.terms_cond_head {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif !important;
}

.terms_cond_head_sub {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif !important;
}

.terms_cond_ul {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px;
  padding: 1px 1px 1px 15px;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif !important;
}

.terms_cond_text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif !important;
}

.terms_cond_bottom,
.terms_cond_please {
  color: #fff;
  font-size: 16px !important;
  font-weight: 500;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif !important;
}

.terms_cond_label {
  margin-left: 10px !important;
  font-size: 14px;
}

.terms_cond_checkbox {
  margin-top: 10px;
  width: 20px;
  height: 20px;
}

/* ===================== 10. MODAL STYLES ===================== */

/* Dark themed modal content (terms & conditions) */
.game_modal-content {
  border-radius: 6px;
  border: 1px solid #fff !important;
  background: #4a4a4a !important;
  color: #fff;
}

.modal-header {
  font-family: "Gotham-Bold", "FrutigerLTArabic-Bold", sans-serif !important;
}

/* ===================== 11. DROPDOWN (op_type nationality) ===================== */

.op_type_dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.op_type_dropdown_input {
  display: block;
  background-position: 0px -310px;
  border: 0.5px solid #aeafaf !important;
  border-radius: 7px;
  margin: 6px;
  padding: 8px;
  color: #fff;
  font-size: 18px;
  width: 98%;
}

.op_type_dropdown_input:focus {
  border: 1px solid #ccc;
}

.op_type_dropdown_content {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  width: 100%;
  z-index: 1;
  min-height: 100px;
  max-height: 140px;
  overflow-y: scroll;
  overflow-x: hidden;
  border-radius: 6px;
}

.op_type_dropdown_content div {
  padding: 2px 8px;
  display: block;
}

.op_type_dropdown_content div:hover {
  background-color: #2962ff;
  color: #fff;
}

/* Toggle visibility helper */
.show {
  display: block;
}

/* ===================== 12. FOOTER ===================== */

.footer-ncema {
  text-align: center;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-text {
  color: var(--gold-text);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.footer-text-ar {
  color: var(--gold-text-light);
  font-size: 0.75rem;
  direction: rtl;
  margin-bottom: 0;
}

/* ===================== 13. PAGE-SPECIFIC STYLES ===================== */

/* -- index.php: Welcome section -- */
.welcome-container {
  padding: 60px 20px;
  text-align: center;
}

.welcome-title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.welcome-subtitle {
  color: #fff;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 40px;
  direction: rtl;
}

.welcome-button {
  display: inline-block;
  padding: 15px 50px;
  font-size: 24px;
  text-decoration: none;
}

/* -- register_thankyou.php: Summary & thank-you section -- */
.summary-box {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  width: 100%;
}

.summary-label {
  color: var(--gold-text-light);
  font-weight: 500;
  min-width: 80px;
  display: inline-block;
  font-family: "Gotham-Medium", "Gotham", Arial, sans-serif;
}

.thankyou-title {
  color: #2c5f2d;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: "Gotham-Bold", "Gotham", Arial, sans-serif;
}

.thankyou-text {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-family: "Gotham-Book", "Gotham", Arial, sans-serif;
}

.thankyou-text-ar {
  color: var(--gold-text-light);
  font-size: 0.875rem;
  direction: rtl;
  margin-bottom: 1rem;
  font-family: "FrutigerLTArabic-Roman", "FrutigerLTArabic", Arial, sans-serif;
}

/* -- register_thankyou_qrcode.php: QR code & success section -- */
.users_qrcodes_img {
  width: 40%;
  max-width: 300px;
}

.success-title {
  color: #2c5f2d;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.success-title-ar {
  color: var(--gold-text);
  font-size: 1.5rem;
  font-weight: 600;
  direction: rtl;
  margin-bottom: 0.5rem;
}

.success-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.success-text-ar {
  color: var(--gold-text-light);
  font-size: 0.95rem;
  direction: rtl;
  line-height: 1.6;
}

/* -- include_common_top_logos.php: Event logo -- */
.logo_a2rl {
  margin-top: 5px;
}

.logo_a2rl img {
  width: 350px;
}

/* ===================== 14. UTILITY ===================== */

/* Debug border — applied to lname field in register.php */
.border-1 {
  border: 1px solid #f00;
}

/* Phone-input plugin container */
.iti {
  position: relative;
  display: inline-block;
}

/* ===================== 15. PHONE INPUT SUPPORT ===================== */

/* Country code and phone number inputs — fill their grid columns */
.input_style_tel,
.input_style_mobile {
  display: block;
  width: 100%;
}
#country_code {
  padding-right: 6px;
  padding-left: 50px;
  position: relative;
  z-index: 0;
  margin-right: 0;
  /* border: 1px solid #ccc; */
  width: 100%;
  font-size: 100%;
  color: #B8962E;
}

.flag-container {
  position: absolute;
  top: 5px;
  right: auto;
  padding: 1px;
}

/* ===================== 16. RESPONSIVE — MEDIA QUERIES ===================== */

@media screen and (max-width: 700px) {

  /* Layout */
  .main-container {
    padding: 1rem 0.5rem;
  }

  /* Cards */
  .reg-card-body {
    padding: 1.5rem 1rem;
  }

  /* Welcome section (index.php) */
  .welcome-title {
    font-size: 28px;
  }

  .welcome-subtitle {
    font-size: 24px;
  }

  .welcome-button {
    font-size: 20px;
    padding: 12px 40px;
  }

  /* Search bar */
  .search_text,
  .search_text:focus {
    font-size: 13px;
  }

  /* Game buttons — full width on mobile (vol_counter) */
  .game_button_col {
    text-align: center;
  }

  .game_buttons,
  .game_buttons_played {
    width: 100%;
  }

  /* Form inputs */
  .input_style,
  .input_style_select {
    margin: 10px 1px;
    margin-top: 18px;
  }

  /* Terms and conditions modal text */
  .terms_cond_text {
    font-weight: 500;
  }

  .terms_cond_ul {
    font-weight: 500;
  }

  /* Phone input flag */
  .flag-container {
    top: 15px;
  }

  /* Thank you page (register_thankyou.php) */
  .thankyou-title {
    font-size: 1.1rem;
  }

  .thankyou-text,
  .thankyou-text-ar {
    font-size: 0.8rem;
  }

  /* QR code / success page (register_thankyou_qrcode.php) */
  .users_qrcodes_img {
    width: 75%;
  }

  .success-title,
  .success-title-ar {
    font-size: 1.25rem;
  }

  .success-text,
  .success-text-ar {
    font-size: 0.875rem;
  }

  /* Logo block (include_common_top_logos.php) */
  .logo_a2rl img {
    width: 150px;
  }
}
