/* City Open University (CoU) - Contact Us
   Design goal: match the attached Apply Now menu + downside style and keep everything editable (typed).
*/
:root{
  --black:#0b0b0b;
  --black-2:#131313;
  --red:#7a0000;
  --red-2:#8b0000;
  --white:#ffffff;
  --muted:#6f6f6f;
  --line:#e7e7e7;
  --blue:#1a73e8;
  --card:#ffffff;
  --shadow: 0 10px 22px rgba(0,0,0,.12);
  --radius: 10px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#fff;
  color:#111;
}

/* TOP SOCIAL STRIP */
.top-social-strip{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  background: #000;
}
.social-dot{
  width:22px;height:22px;
  display:inline-flex;
  align-items:center;justify-content:center;
  border-radius:50%;
  text-decoration:none;
  color:#fff;
  font-size:12px;
  background:#1f1f1f;
}

/* HEADER */
.header{
  background:#000;
  color:#fff;
}
.menu-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 16px;
  border-top:1px solid rgba(255,255,255,.08);
}
.menu-row-1{padding-top:12px}
.menu-left, .menu-right-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.menu-left a, .menu-right-inline a{
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}
.sep{opacity:.55}

.menu-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.select-pill{
  background:#111;
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  padding:6px 10px;
}
.select-pill select{
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-weight:600;
  font-size:12px;
  cursor:pointer;
}

.select-pill select option{
  background:#111;
  color:#fff;
}

.country-pill{
  display:flex;
  align-items:center;
  gap:8px;
  /* keep the country box compact so it never pushes the menu links to a new line */
  max-width:180px;
  min-width:0;
}
.flag{font-size:16px}

/* DROPDOWNS */
.dropdown{position:relative}
.dropbtn{
  background:transparent;
  border:0;
  color:#fff;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  padding:6px 8px;
}
.dropdown-content{
  /* COUNTRY COMBOBOX (searchable, like Apply Now sample) */
.country-pill{ max-width:180px; }
.country-combo{ position:relative; width:170px; max-width:170px; }
.country-trigger{
  width:170px;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  background:transparent;
  border:0;
  color:#fff;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  padding:0;
}
.country-label{
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
}
.country-trigger .caret{ opacity:.9; font-size:11px; }

.country-popover{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:260px;
  background:#0c0c0c;
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  box-shadow:0 16px 40px rgba(0,0,0,.55);
  padding:10px;
  z-index:9999;
}
.country-search{
  width:100%;
  background:#111;
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  outline:none;
}
.country-search::placeholder{ color:rgba(255,255,255,.55); }
.country-list{
  margin-top:10px;
  max-height:280px;
  overflow:auto;
  padding-right:4px;
}
.country-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  cursor:pointer;
  user-select:none;
}
.country-option:hover{
  background:rgba(255,255,255,.06);
}
.country-option-flag{ width:18px; text-align:center; }
.country-option-name{ color:#fff; font-weight:600; font-size:12px; }
.country-empty{
  padding:12px 10px;
  color:rgba(255,255,255,.7);
  font-size:12px;
}

/* Scrollbar (subtle, still dark) */
.country-list::-webkit-scrollbar{ width:10px; }
.country-list::-webkit-scrollbar-track{ background:transparent; }
.country-list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.12); border-radius:10px; }
.country-list::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.18); }

display:none;
  position:absolute;
  left:0;
  top:34px;
  background:#111;
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  min-width:220px;
  z-index:50;
  overflow:hidden;
}
.dropdown-content.right{right:0;left:auto}
.dropdown-content a{
  display:block;
  padding:10px 12px;
  color:#fff;
  text-decoration:none;
  font-size:12px;
}
.dropdown-content a:hover{background:#1a1a1a}
.dropdown:hover .dropdown-content{display:block}

/* BRAND CENTER */
.brand-center{display:flex;justify-content:center;align-items:center;min-width:90px}
.brand-badge{
  width:34px;height:34px;
  border-radius:50%;
  background: #fff;
  color: var(--red);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  border:2px solid rgba(255,255,255,.2);
}

/* MAIN NAV (RED) */
.main-nav{
  background: var(--red);
  display:flex;
  gap:18px;
  padding:12px 18px;
  flex-wrap:wrap;
}
.main-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.main-nav a.active{ text-decoration: underline; text-underline-offset: 3px; }
.main-nav a.cta{
  margin-left:auto;
  background:#fff;
  color:var(--red);
  padding:6px 12px;
  border-radius:999px;
}

/* HERO */
.hero{background:#fff}
.hero-img{
  display:block;
  width:100%;
  height:auto;
}

/* LAYOUT */
.container{
  width:min(1180px, 92vw);
  margin: 26px auto 0;
}
.section{margin: 18px 0 36px}
.section-title{
  text-align:center;
  font-size:34px;
  margin: 0 0 6px;
  font-weight:900;
}
.dot-center{text-align:center;color:var(--red);font-size:20px;margin:6px 0 18px}

/* GENERAL INFO CARDS */
.info-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.info-card{
  background:var(--card);
  border-radius: 0;
  border:1px solid #d9d9d9;
  box-shadow: var(--shadow);
  padding: 18px 16px 22px;
  text-align:center;
  position:relative;
}
.info-card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:4px;
  background: var(--red);
}
.info-icon{font-size:26px;margin-top:10px}
.info-card h3{
  margin:10px 0 6px;
  font-size:13px;
  font-weight:900;
  letter-spacing:.8px;
}
.divider{
  width:60%;
  height:1px;
  background:#d0d0d0;
  margin:12px auto 14px;
}
.muted{color:#444}
.big{font-weight:800}
.blue-link{color:var(--blue);text-decoration:underline}
.underline{text-decoration:underline;color:#fff}

/* TABS SECTION */
.tabs{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  background:#eef1f5;
  border-radius: 14px 14px 0 0;
  overflow:hidden;
}
.tab{
  background:transparent;
  border:0;
  padding:14px 12px;
  font-weight:500;
  cursor:pointer;
  font-size:16px;
  color:#122;
}
.tab.active{
  background:#1f275a;
  color:#fff;
}
.tab-panels{
  border:1px solid #dfe5ef;
  border-top:0;
  padding:20px 18px 24px;
  border-radius: 0 0 14px 14px;
}
.tab-panel{display:none}
.tab-panel.active{display:block}
.panel-title{
  font-size:38px;
  margin: 10px 0 10px;
  color:#0c1f44;
}
.panel-sub{
  margin:0 0 18px;
  color:#1a1a1a;
  line-height:1.5;
}
.panel-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.panel-grid.single{grid-template-columns: 1fr; max-width: 520px}
.panel-grid.two-rows{
  grid-template-columns: repeat(3, 1fr);
}
.panel-card{
  display:block;
  text-decoration:none;
  color:#111;
  background:#fff;
  border:1px solid #b9bfe7;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  padding:18px 18px 14px;
  min-height:140px;
}
.panel-card:hover{transform: translateY(-1px)}
.panel-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:800;
  font-size:16px;
  margin-bottom:10px;
  color:#0c1f44;
}
.arrow{color:#e05b62;font-size:22px;font-weight:900}
.panel-card p{margin:0 0 8px; line-height:1.45}

/* CARD SPLIT (SIDEBAR IMAGE + CONTENT) */
.card{
  background:#fff;
  border:1px solid #e3e3e3;
  box-shadow: var(--shadow);
  border-radius: 18px;
  overflow:hidden;
}
.card-split{
  display:grid;
  grid-template-columns: 420px 1fr;
}
.card-media{
  background:#f6f6f6;
  border-right:1px solid #eee;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
.card-media img{
  width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.card-body{padding:18px 18px 22px}
.tiny-top{margin:0 0 10px;color:#333;font-size:12px}
.form-title{margin:0 0 10px;font-size:34px}
.form-subtitle{margin:0 0 10px}
.accent{color:#b3001e;font-weight:800}

/* FORM */
form{margin-top:8px}
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px 14px;
}
label{display:block}
.label{
  display:none; /* placeholders already match template look */
}
input, select, textarea{
  width:100%;
  border:0;
  background:#f3f3f3;
  padding:14px 14px;
  font-size:13px;
  outline: 1px solid #e1e1e1;
}
textarea{min-height:120px;resize:vertical}
.full{grid-column:1 / -1}
.consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:12px 0 6px;
  color:#333;
  font-size:12px;
}
.consent input{width:auto;margin-top:3px;outline:none}
.form-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}
.btn-submit{
  border:0;
  cursor:pointer;
  background:#d2003b;
  color:#fff;
  font-weight:900;
  padding:12px 18px;
  border-radius: 8px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-arrow{font-size:20px;line-height:1}
.form-hint{margin:10px 0 0; color:#b00020; font-weight:700; min-height:18px}

/* FOOTER */
.footer{
  margin-top:34px;
  background: radial-gradient(ellipse at top, #1a1a1a 0%, #000 58%);
  color:#fff;
}
.footer-inner{
  width:min(1180px, 92vw);
  margin:0 auto;
  padding:34px 0 18px;
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:22px;
  align-items:start;
}
.footer-left h3{margin:0 0 10px;font-size:18px}
.footer-links{
  margin:0;
  color:#fff;
  line-height:1.65;
  font-size:12px;
  font-weight:600;
}
.footer-links a{color:#fff;text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.copyright{margin:14px 0 0;font-size:12px;opacity:.95}
.hq-card{
  position:relative;
  background:#efefef;
  color:#111;
  border-radius:18px;
  padding:28px 22px 18px;
  box-shadow: var(--shadow);
}
.hq-logo{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:-22px;
  width:44px;height:44px;
  border-radius:50%;
  background:#fff;
  border:3px solid rgba(0,0,0,.08);
  display:flex;align-items:center;justify-content:center;
  color:var(--red);
  font-weight:900;
}
.hq-card h3{margin:14px 0 6px;text-align:center;font-size:20px}
.hq-sub{text-align:center;margin:0 0 12px;font-weight:800}
.hq-addr{text-align:center;margin:0 0 10px;font-size:12px}
.hq-phone{text-align:center;margin:0 0 12px;font-weight:900;color:#0f7a1b}
.hq-social{display:flex;gap:10px;justify-content:center;margin:8px 0 12px}
.hq-dot{
  width:26px;height:26px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;color:#fff;font-weight:800;font-size:12px;
  background:#2b2b2b;
}
.join{text-align:center;margin:8px 0 6px}
.join-sub{text-align:center;margin:0 0 14px;font-size:12px}
.dots{display:flex;gap:8px;justify-content:center}
.dots span{width:10px;height:10px;border-radius:50%;background:#111;opacity:.25}
.dots span:nth-child(1){opacity:.9;background:#1e88e5}
.dots span:nth-child(2){opacity:.9;background:#b00020}
.dots span:nth-child(3){opacity:.9;background:#000}
.dots span:nth-child(4){opacity:.9;background:#0f7a1b}
.dots span:nth-child(5){opacity:.9;background:#ff8f00}
.dots span:nth-child(6){opacity:.9;background:#6d6d6d}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:14px 18px 18px;
  text-align:center;
  font-weight:700;
  font-size:13px;
}
.footer-bottom a{color:#fff;text-decoration:none}
.footer-bottom a:hover{text-decoration:underline}

/* CHAT */
.chat-fab{
  position:fixed;
  right:18px;
  bottom:90px;
  width:64px;height:64px;
  border-radius:50%;
  background:#6b0000;
  border:0;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow: var(--shadow);
}
.chat-widget{
  position:fixed;
  right:18px;
  bottom:18px;
  width:320px;
  max-width: calc(100vw - 36px);
  background:#fff;
  border-radius:14px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
}
.chat-widget.open{display:block}
.chat-header{
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
}
.chat-sub{font-size:11px;opacity:.9}
.chat-close{
  width:30px;height:30px;border-radius:8px;border:0;
  cursor:pointer;
  background:#1a1a1a;color:#fff;font-size:18px;
}
.chat-body{
  padding:10px 12px;
  height:210px;
  overflow:auto;
  background:#fafafa;
}
.chat-bubble{
  max-width: 85%;
  padding:10px 10px;
  border-radius:12px;
  margin:8px 0;
  font-size:13px;
  line-height:1.35;
}
.chat-bubble.bot{background:#e9e9e9}
.chat-bubble.user{background:#d2003b;color:#fff;margin-left:auto}
.chat-input{
  display:flex;
  gap:8px;
  padding:10px 10px;
  border-top:1px solid #eee;
}
.chat-input input{
  flex:1;
  outline:1px solid #e1e1e1;
  background:#f3f3f3;
}
.chat-input button{
  border:0;
  background:#111;color:#fff;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .info-cards{grid-template-columns:1fr}
  .panel-grid{grid-template-columns:1fr}
  .panel-grid.two-rows{grid-template-columns:1fr}
  .card-split{grid-template-columns:1fr}
  .card-media{max-height:260px}
  .main-nav a.cta{margin-left:0}
  .footer-inner{grid-template-columns:1fr}
}
