/**
 * Astoe Technology - Navy Blue theme (site + payment)
 * Rameez Scripts
 */

:root { --navy-primary: #001f3f; --navy-dark: #001529; --navy-light: #003366; --navy-accent: #0074D9; --navy-hover: #002a52; --success: #34a853; --warning: #fbbc04; --danger: #ea4335; }
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

input, select, textarea { font-size: 16px !important; touch-action: manipulation; }
a { color: var(--navy-accent); text-decoration: none; }
a:hover { color: var(--navy-primary); }

/* ============================================================
   SITE NAV (fixed top — Bootstrap navbar override)
   ============================================================ */
.site-nav { background: linear-gradient(135deg, rgba(0,31,63,0.96) 0%, rgba(0,51,102,0.96) 100%); padding: 10px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.18); backdrop-filter: blur(6px); }
.site-nav .navbar-brand { color: #fff !important; font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.site-nav .navbar-brand img { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.site-nav .nav-link { color: rgba(255,255,255,0.88) !important; font-weight: 500; font-size: 15px; padding: 8px 14px !important; border-radius: 3px; transition: all 0.25s; }
.site-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.site-nav .nav-link.active { color: #fff !important; background: var(--navy-accent); }
.site-nav .cta-pay { background: var(--navy-accent); color: #fff !important; padding: 8px 18px !important; border-radius: 3px; font-weight: 600; margin-left: 8px; }
.site-nav .cta-pay:hover { background: #005bb0; transform: translateY(-1px); }
.site-nav .navbar-toggler { border: 1px solid rgba(255,255,255,0.4); }
.site-nav .navbar-toggler-icon { filter: invert(1); }

/* ============================================================
   SITE LAYOUT
   ============================================================ */
.site-main { min-height: calc(100vh - 200px); }
.site-footer { background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%); color: #fff; padding: 30px 20px; text-align: center; }
.site-footer img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); margin-right: 10px; vertical-align: middle; }
.site-footer .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-footer .footer-line { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 15px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; opacity: 0.85; }
.site-footer .footer-links a { color: #fff; text-decoration: none; }
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .footer-sep { opacity: 0.4; }

/* ============================================================
   HERO (banner with dark overlay)
   ============================================================ */
.hero { position: relative; color: #fff; text-align: center; padding: 140px 20px 80px; margin-top: 66px; background: url('assets/banner.jpeg') no-repeat center center/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,31,63,0.82) 0%, rgba(0,51,102,0.72) 100%); }
.hero > * { position: relative; z-index: 2; }
.hero h1 { font-size: 3rem; font-weight: 700; text-shadow: 2px 2px 6px rgba(0,0,0,0.4); margin-bottom: 14px; }
.hero p.lead { font-size: 1.2rem; opacity: 0.95; max-width: 720px; margin: 0 auto 28px; }
.hero-small { padding: 100px 20px 60px; }
.hero-small h1 { font-size: 2.2rem; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-hero { padding: 14px 30px; border-radius: 3px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-hero-primary { background: var(--navy-accent); color: #fff; }
.btn-hero-primary:hover { background: #005bb0; transform: translateY(-2px); color: #fff; }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 70px 20px; }
.section-alt { background: #fff; }
.section-gray { background: #f5f5f5; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--navy-primary); text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: #666; font-size: 1rem; max-width: 680px; margin: 0 auto 40px; line-height: 1.6; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card { background: #fff; padding: 32px 24px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); border-top: 4px solid var(--navy-primary); text-align: center; transition: all 0.3s; height: 100%; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.14); border-top-color: var(--navy-accent); }
.service-icon { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-accent) 100%); color: #fff; font-size: 30px; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.service-title { font-size: 1.3rem; font-weight: 700; color: var(--navy-primary); margin-bottom: 12px; }
.service-desc { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 14px; flex: 1; }
.service-price { font-size: 14px; color: var(--navy-accent); font-weight: 700; margin-bottom: 16px; }
.service-tech { font-size: 12px; color: #888; margin-bottom: 18px; }
.service-tech strong { color: var(--navy-primary); }
.btn-learn { background: var(--navy-accent); color: #fff; padding: 10px 22px; border-radius: 3px; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; transition: all 0.25s; border: none; cursor: pointer; }
.btn-learn:hover { background: var(--navy-primary); color: #fff; transform: translateY(-2px); }

/* ============================================================
   POLICY / TEXT-HEAVY PAGES
   ============================================================ */
.policy-container { padding: 50px 20px; background: #f5f5f5; }
.policy-title { font-size: 2rem; font-weight: 700; color: var(--navy-primary); text-align: center; margin-bottom: 12px; }
.policy-meta { text-align: center; color: #888; font-size: 13px; margin-bottom: 30px; }
.policy-box { background: #fff; padding: 28px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border-left: 4px solid var(--navy-primary); margin-bottom: 20px; }
.policy-box h3 { color: var(--navy-primary); font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.policy-box h3 i { color: var(--navy-accent); }
.policy-text { font-size: 15px; color: #555; line-height: 1.75; margin-bottom: 12px; }
.policy-text:last-child { margin-bottom: 0; }
.policy-text strong { color: var(--navy-primary); }
.policy-box ul { margin: 10px 0 10px 22px; color: #555; line-height: 1.8; }
.policy-box ul li { margin-bottom: 6px; font-size: 15px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container { padding: 50px 20px; background: #f5f5f5; }
.contact-box { background: #fff; padding: 28px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border-left: 4px solid var(--navy-primary); height: 100%; }
.contact-box h3 { color: var(--navy-primary); font-size: 20px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.contact-box h3 i { color: var(--navy-accent); }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-row i { color: var(--navy-accent); font-size: 18px; width: 22px; text-align: center; margin-top: 3px; flex-shrink: 0; }
.contact-info-row .ci-label { display: block; font-weight: 600; color: var(--navy-primary); font-size: 13px; margin-bottom: 2px; }
.contact-info-row .ci-val { color: #555; font-size: 14px; line-height: 1.6; }
.contact-box .form-control { width: 100%; padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 3px; font-size: 16px; transition: all 0.3s; margin-bottom: 14px; font-family: inherit; }
.contact-box .form-control:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 2px rgba(0,116,217,0.12); }
.contact-box textarea.form-control { resize: vertical; min-height: 110px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section-wrap { padding: 60px 20px; background: #f5f5f5; }
.about-card-lg { background: #fff; padding: 36px 30px; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-left: 4px solid var(--navy-primary); margin-bottom: 24px; }
.about-card-lg h2 { color: var(--navy-primary); font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.about-card-lg h2 i { color: var(--navy-accent); }
.about-card-lg p { color: #555; line-height: 1.8; font-size: 15px; }
.why-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 8px; }
.why-list li { padding: 14px 18px; background: #f8f9fa; border-radius: 4px; color: #333; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 12px; border-left: 3px solid var(--navy-accent); }
.why-list li i { color: var(--success); font-size: 16px; }

/* ============================================================
   LEGACY — payment (login-box frame) keeps working
   ============================================================ */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); }
.login-box { background: white; padding: 50px 40px; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 100%; max-width: 460px; text-align: center; }
.login-logo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 25px; border: 3px solid var(--navy-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.login-box h2 { margin-bottom: 8px; color: var(--navy-primary); font-size: 26px; font-weight: 600; }
.login-sub { color: #666; font-size: 14px; margin-bottom: 28px; }

/* Forms (shared) */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: #555; font-weight: 500; font-size: 14px; }
.form-group label i { color: var(--navy-accent); margin-right: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #d0d0d0; border-radius: 2px; font-size: 16px; transition: all 0.3s; font-family: inherit; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 2px rgba(0,116,217,0.1); }
.form-actions { display: flex; gap: 10px; margin-top: 30px; }
.error { margin-top: 15px; color: var(--danger); font-size: 14px; }

/* Buttons (shared) */
.btn { padding: 10px 20px; border: none; border-radius: 2px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.btn-primary { background: var(--navy-primary); color: white; }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); color: #fff; }
.btn-success { background: var(--success); color: white; }
.btn-danger  { background: var(--danger);  color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 13px; font-weight: 600; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* Status badges */
.status-badge { padding: 6px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; display: inline-block; }
.status-success  { background: #d4edda; color: #155724; }
.status-pending  { background: #fff3cd; color: #7a5b00; }
.status-failed   { background: #f8d7da; color: #721c24; }
.status-unknown  { background: #e2e3e5; color: #41464b; }

/* About-style table (used by pay.php result view) */
.about-table-wrapper { overflow-x: auto; margin: 15px 0; }
.about-roles-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.about-roles-table th, .about-roles-table td { padding: 12px 15px; text-align: center; border: 1px solid #e0e0e0; }
.about-roles-table th { background: var(--navy-primary); color: white; font-weight: 600; }
.about-roles-table td:first-child { text-align: left; font-weight: 500; background: #f8f9fa; }

/* Loading popup */
.loading-ov { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; z-index: 10001; }
.loading-popup { background: white; padding: 30px 40px; border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.18); display: flex; flex-direction: column; align-items: center; min-width: 240px; }
.loading-progress { width: 200px; height: 6px; border-radius: 2px; background: #e0e0e0; overflow: hidden; margin-bottom: 16px; }
.loading-progress-bar { width: 100%; height: 100%; background: var(--navy-accent); border-radius: 2px; animation: progressIndeterminate 1.5s ease-in-out infinite; transform-origin: left; }
@keyframes progressIndeterminate { 0% { transform: translateX(-100%) scaleX(0.4); } 50% { transform: translateX(20%) scaleX(0.5); } 100% { transform: translateX(100%) scaleX(0.4); } }
.loading-txt { font-size: 15px; color: #555; font-weight: 500; }

/* Payment-specific */
.amount-box { position: relative; }
.amount-box .rupee { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--navy-primary); z-index: 1; }
.amount-box input { padding-left: 38px !important; font-size: 22px !important; font-weight: 700; color: var(--navy-primary); }
.quick-amt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick-amt button { padding: 8px 4px; border: 1.5px solid #ced4da; background: #f8f9fa; color: var(--navy-primary); border-radius: 3px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; touch-action: manipulation; }
.quick-amt button:hover { border-color: var(--navy-accent); background: rgba(0,116,217,0.08); color: var(--navy-accent); }
.quick-amt button:active { transform: scale(0.96); }
.secure-note { text-align: center; color: #888; font-size: 12px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.secure-note i { color: var(--success); }
.result-icon { font-size: 76px; margin-bottom: 10px; animation: popIn 0.45s cubic-bezier(0.3,1.4,0.5,1); }
.result-icon.success { color: var(--success); }
.result-icon.pending { color: var(--warning); }
.result-icon.fail    { color: var(--danger); }
@keyframes popIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.err-debug { margin: 14px 0; padding: 12px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 3px; font-size: 11px; color: #5a6474; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-all; text-align: left; font-family: SFMono-Regular, Consolas, monospace; }

/* ============================================================
   BOOTSTRAP MODAL OVERRIDE
   ============================================================ */
.modal-content { border-radius: 6px; border: none; }
.modal-header { background: var(--navy-primary); color: #fff; border-radius: 6px 6px 0 0; border-bottom: none; }
.modal-header .btn-close { filter: invert(1); opacity: 0.8; }
.modal-title { font-weight: 600; }
.modal-body { padding: 24px; color: #555; line-height: 1.7; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav .navbar-brand { font-size: 17px; }
  .site-nav .navbar-brand img { height: 36px; width: 36px; }
  .site-nav .cta-pay { margin-left: 0; margin-top: 8px; }
  .hero { padding: 110px 16px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1rem; }
  .section { padding: 50px 16px; }
  .section-title { font-size: 1.6rem; }
  .about-card-lg, .policy-box, .contact-box { padding: 22px 18px; }
  .about-card-lg h2, .policy-title { font-size: 1.4rem; }
  .login-box { padding: 32px 22px; max-width: 100%; }
  .login-box h2 { font-size: 22px; }
  .login-logo { width: 90px; height: 90px; }

  input, select, textarea { font-size: 16px !important; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px !important; padding: 12px 14px; }
}
