/* ============================================
   The Savoy London - Job Portal CSS
   ============================================ */

:root {
  --gold: #c9a84c;
  --gold-dark: #a8832a;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --light-bg: #f9f6ee;
  --text: #333;
  --text-light: #666;
  --border: #e0d8c3;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; padding-top: 75px; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

/* Utility */
.btn-gold {
  background: var(--gold);
  color: #1a1a2e !important;
  font-weight: 600;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  transition: all .3s;
  text-decoration: none;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff !important; }
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  transition: all .3s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-gold:hover { background: var(--gold); color: #1a1a2e !important; }
.text-gold { color: var(--gold) !important; }
.bg-dark-custom { background: var(--dark); }
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin: 15px auto 30px; }
.section-divider.left { margin-left: 0; }

/* Navbar brand logo SVG */
.navbar-brand img {
  transition: filter .3s, transform .3s;
}
.navbar-brand:hover img {
  filter: drop-shadow(0 0 10px rgba(201,168,76,.65)) !important;
  transform: scale(1.05);
}

/* Navbar */
#mainNav {
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  transition: all .3s;
}
#mainNav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.brand-logo { width: 42px; height: 42px; background: var(--gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.brand-sl { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; color: var(--dark); }
.brand-name { font-family: 'Playfair Display', serif; font-size: 14px; color: #fff; font-weight: 600; line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.navbar-nav .nav-link { color: rgba(255,255,255,.85) !important; font-size: 14px; font-weight: 500; padding: 8px 15px !important; transition: color .3s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gold) !important; }

/* Hero Section */
.hero {
  min-height: 55vh;
  background: linear-gradient(135deg, rgba(26,26,46,0.90) 0%, rgba(22,33,62,0.87) 100%),
    url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 90px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(transparent, #fff);
}
.hero-badge { display: inline-block; background: var(--gold); color: var(--dark); font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 20px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 560px; line-height: 1.8; }
.hero-stats { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; }
.hero-form-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; z-index: 1; }
.hero-form-card h4 { color: var(--dark); font-size: 1.15rem; margin-bottom: 16px; }

/* Feature Cards */
.feature-card { background: #fff; border-radius: 10px; padding: 30px; text-align: center; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.feature-card:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(201,168,76,.15); transform: translateY(-4px); }
.feature-icon { width: 65px; height: 65px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border: 2px solid var(--border); }
.feature-icon i { font-size: 24px; color: var(--gold); }

/* Job Cards */
.job-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 25px; transition: all .3s; height: 100%; }
.job-card:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(201,168,76,.15); }
.job-badge { display: inline-block; background: var(--light-bg); color: var(--gold); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.salary-tag { background: var(--dark); color: var(--gold); padding: 5px 12px; border-radius: 5px; font-size: 14px; font-weight: 600; }

/* Salary Table */
.salary-table { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.salary-table thead { background: var(--dark); color: #fff; }
.salary-table thead th { color: var(--gold); font-family: 'Playfair Display', serif; }
.salary-table tbody tr:hover { background: var(--light-bg); }

/* Process Steps */
.process-step { text-align: center; position: relative; padding: 0 20px; }
.step-num { width: 55px; height: 55px; background: var(--gold); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin: 0 auto 15px; }
.process-connector { height: 2px; background: var(--border); flex: 1; margin-top: -42px; }

/* Application Form */
.form-section { background: var(--light-bg); padding: 60px 0; }
.form-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 5px 30px rgba(0,0,0,.07); }
.form-label { font-weight: 600; color: var(--dark); font-size: 14px; }
.form-control, .form-select { border: 1px solid #ddd; border-radius: 6px; padding: 10px 14px; font-size: 14px; transition: border-color .3s; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); outline: none; }
.step-header { background: var(--dark); color: #fff; padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; }
.step-header h5 { margin: 0; color: var(--gold); }
.step-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #999; transition: all .3s; }
.step-dot.active { background: var(--gold); color: var(--dark); }
.step-dot.done { background: #28a745; color: #fff; }
.upload-area { border: 2px dashed var(--border); border-radius: 8px; padding: 25px; text-align: center; cursor: pointer; transition: all .3s; background: #fafafa; }
.upload-area:hover { border-color: var(--gold); background: var(--light-bg); }
.upload-area i { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.preview-img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; margin-top: 10px; border: 1px solid var(--border); }
.otp-input { letter-spacing: 10px; font-size: 24px; text-align: center; font-weight: 700; }

/* Payment Page */
.payment-method-card { border: 2px solid var(--border); border-radius: 10px; padding: 20px; cursor: pointer; transition: all .3s; text-align: center; }
.payment-method-card:hover, .payment-method-card.selected { border-color: var(--gold); background: var(--light-bg); }
.payment-method-card img { height: 45px; object-fit: contain; }
.bank-item { background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 15px; }
.bank-item h6 { color: var(--dark); font-weight: 700; margin-bottom: 5px; }

/* Offer Letter Page */
.offer-check-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 5px 30px rgba(0,0,0,.07); text-align: center; }
.offer-icon { width: 80px; height: 80px; background: #d4edda; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.offer-icon i { font-size: 35px; color: #28a745; }

/* Offer Letter Document */
.offer-letter-doc {
  background: #fff;
  max-width: 850px;
  margin: 0 auto;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
  font-family: 'Times New Roman', serif;
}
.letter-security-bg {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201,168,76,.03) 40px, rgba(201,168,76,.03) 80px);
  pointer-events: none;
  z-index: 0;
}
.letter-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-30deg);
  font-size: 80px;
  color: rgba(201,168,76,.07);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.letter-content { position: relative; z-index: 1; padding: 50px; }
.letter-header { border-bottom: 3px double var(--gold); padding-bottom: 20px; margin-bottom: 30px; }
.letter-logo-text { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--dark); letter-spacing: 3px; }
.letter-micro-print { font-size: 9px; color: #aaa; text-align: center; margin-top: 30px; line-height: 1.4; border-top: 1px solid #eee; padding-top: 10px; }
.letter-secure-strip {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 10px, var(--dark) 10px, var(--dark) 20px, #c0392b 20px, #c0392b 30px, #2980b9 30px, #2980b9 40px);
}
.letter-border {
  border: 12px solid transparent;
  border-image: repeating-linear-gradient(45deg, var(--gold), var(--gold) 5px, transparent 5px, transparent 15px) 12;
  margin: 0;
}
.qr-code-container { text-align: right; }
.barcode-area { font-family: monospace; font-size: 11px; color: #333; background: #f9f9f9; padding: 8px; border: 1px solid #ddd; display: inline-block; border-radius: 4px; }
.letter-seal { width: 90px; height: 90px; border: 3px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9px; font-weight: 700; color: var(--gold); text-transform: uppercase; margin: 20px auto; }

/* About Page */
.about-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); padding: 100px 0 60px; }
.hotel-info-card { background: var(--light-bg); border-radius: 10px; padding: 25px; border: 1px solid var(--border); }

/* FAQ Accordion */
.accordion-button:not(.collapsed) { background: var(--light-bg); color: var(--dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--gold); }

/* Contact Page */
.contact-info-card { background: var(--dark); color: #fff; border-radius: 10px; padding: 30px; }
.contact-info-card .ci-icon { width: 50px; height: 50px; background: rgba(201,168,76,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.contact-info-card i { color: var(--gold); }

/* WhatsApp Widget */
.whatsapp-widget { position: fixed; bottom: 30px; left: 30px; z-index: 9999; }
.whatsapp-widget.wa-pos-right { left: auto; right: 30px; }
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none; border-radius: 50%;
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4);
  transition: all .3s;
  position: relative;
  animation: wa-pulse 2.5s infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-tooltip {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
}
.wa-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1a1a2e;
}
.wa-pos-right .wa-tooltip {
  left: auto;
  right: 72px;
}
.wa-pos-right .wa-tooltip::before {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: #1a1a2e;
}
.whatsapp-btn:hover .wa-tooltip { opacity: 1; }
.wa-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ff4444; color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid #fff;
  animation: wa-badge-bounce .8s infinite alternate;
}
@keyframes wa-badge-bounce {
  from { transform: scale(1); }
  to   { transform: scale(1.2); }
}
.whatsapp-popup {
  position: absolute; bottom: 75px; left: 0;
  width: 310px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 45px rgba(0,0,0,.22);
  overflow: hidden; flex-direction: column;
  border: 1px solid rgba(37,211,102,.15);
}
.wa-pos-right .whatsapp-popup { left: auto; right: 0; }
.wp-header {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  padding: 15px 16px; display: flex; align-items: center; gap: 12px;
}
.wp-avatar {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}
.wp-info .wp-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; }
.wp-info .wp-status { color: rgba(255,255,255,.85); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.status-dot {
  width: 8px; height: 8px; background: #a5f3a5;
  border-radius: 50%; display: inline-block;
  animation: status-blink 2s infinite;
}
@keyframes status-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
.wp-close { background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 14px; cursor: pointer; margin-left: auto; padding: 6px 8px; border-radius: 50%; transition: background .2s; }
.wp-close:hover { background: rgba(255,255,255,.3); }
.wp-body { padding: 18px; background: #e5ddd5; flex: 1; }
.wp-time { font-size: 11px; color: #999; text-align: center; margin-bottom: 10px; }
.wp-message {
  background: #fff; border-radius: 0 10px 10px 10px;
  padding: 12px 15px; font-size: 14px; color: #333; line-height: 1.6;
  max-width: 88%; box-shadow: 0 1px 3px rgba(0,0,0,.12);
  position: relative;
}
.wp-message::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  border: 8px solid transparent;
  border-right-color: #fff;
  border-top: 0;
}
.wp-footer { padding: 12px 15px; background: #f0f0f0; }
.btn-start-chat {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important; border-radius: 8px;
  padding: 11px 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 14px;
  transition: opacity .3s; letter-spacing: .3px;
}
.btn-start-chat:hover { opacity: .88; color: #fff !important; }
.wp-privacy { text-align: center; font-size: 11px; color: #aaa; margin-top: 8px; }
.wp-privacy i { color: #25d366; }

/* Admin Panel */
.admin-sidebar { width: 250px; min-height: calc(100vh - 75px); background: var(--dark); position: fixed; left: 0; top: 75px; overflow-y: auto; z-index: 100; transition: all .3s; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.7); padding: 12px 20px; font-size: 14px; transition: all .3s; border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,168,76,.08); }
.admin-sidebar .nav-link i { width: 20px; text-align: center; margin-right: 10px; }
.admin-content { margin-left: 250px; padding: 30px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; border: 1px solid var(--border); border-top: 4px solid var(--gold); }
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-card .stat-label { color: var(--text-light); font-size: 14px; }
.admin-table { font-size: 14px; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d1e7dd; color: #0f5132; }
.badge-rejected { background: #f8d7da; color: #842029; }

/* Fixed Flash */
.fixed-flash { position: fixed; top: 80px; right: 20px; z-index: 9990; max-width: 350px; box-shadow: 0 5px 20px rgba(0,0,0,.15); border-radius: 8px; }

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer { background: var(--dark); color: #fff; margin-top: 0; }
.footer-top { padding: 60px 0 40px; border-bottom: 1px solid rgba(201,168,76,.2); }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.brand-sl-lg { width: 52px; height: 52px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--dark); flex-shrink: 0; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.footer-brand-sub { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; }
.footer-desc { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.8; margin-top: 5px; }
.footer-social { display: flex; gap: 10px; }
.social-icon { width: 38px; height: 38px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); text-decoration: none; transition: all .3s; font-size: 14px; }
.social-icon:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: translateY(-2px); }
.social-icon.whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.footer-heading { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(201,168,76,.25); text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; transition: all .3s; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a i { font-size: 10px; color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-contact li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; width: 14px; }
.footer-contact a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .3s; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0; background: rgba(0,0,0,.3); }
.footer-bottom p { color: rgba(255,255,255,.45); font-size: 12px; margin: 0; }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 85px 0 40px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .admin-sidebar { width: 100%; position: relative; top: 0; min-height: auto; }
  .admin-content { margin-left: 0; padding: 15px; }
  .letter-content { padding: 25px; }
  .letter-logo-text { font-size: 20px; }
}
@media print {
  .no-print { display: none !important; }
  .offer-letter-doc { border: none; box-shadow: none; }
  body { padding-top: 0; }
  .letter-secure-strip { display: block !important; }
}
