/* =========================================================
   OPORTALISLAMICO — contact.css
   ========================================================= */

/* ── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb-bar { background: var(--ivory-dark); border-bottom: 1px solid var(--border); }
.breadcrumb-inner {
  max-width: var(--max-w); margin: auto;
  padding: .6rem 1.5rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--text-light);
}
.bc-home {
  display: flex; align-items: center; gap: .3rem;
  color: var(--green-mid); font-weight: 600;
  transition: color var(--transition);
}
.bc-home:hover { color: var(--green-deep); }
.bc-sep { color: var(--text-light); }
.bc-current { color: var(--text-mid); font-weight: 600; }

/* ── HERO ──────────────────────────────────────────────── */
.ct-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ct-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    var(--green-deep) 0%,
    #204535 35%,
    #2d6048 65%,
    #3a7a5a 100%);
}
.ct-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(201,168,76,.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(201,168,76,.10) 0%, transparent 40%);
}
.ct-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.ct-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,51,39,.55) 0%, transparent 100%);
}
.ct-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: auto;
  padding: 3.5rem 1.5rem;
  width: 100%;
}
.ct-hero-arabic {
  font-family: var(--font-arabic);
  font-size: 2.8rem;
  color: var(--gold-light);
  opacity: .4;
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  direction: rtl;
}
.ct-hero-title {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 900;
  color: white; line-height: 1.1;
  margin-bottom: .9rem;
}
.ct-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 1.5rem;
}
.ct-email-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(201,168,76,.2);
  border: 1.5px solid rgba(201,168,76,.5);
  color: var(--gold-light);
  padding: .55rem 1.2rem;
  border-radius: 30px;
  font-size: .9rem; font-weight: 700;
  letter-spacing: .02em;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.ct-email-badge:hover {
  background: rgba(201,168,76,.32);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ── MAIN LAYOUT ───────────────────────────────────────── */
.ct-main {
  max-width: var(--max-w); margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.ct-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ── FORM CARD ─────────────────────────────────────────── */
.ct-form-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ct-form-header {
  display: flex; align-items: center; gap: 1rem;
  background: var(--green-deep);
  padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--gold);
}
.ct-form-icon-wrap {
  width: 50px; height: 50px;
  background: rgba(201,168,76,.2);
  border: 1.5px solid rgba(201,168,76,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.ct-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900;
  color: white;
  line-height: 1.1; margin-bottom: .2rem;
}
.ct-form-subtitle { font-size: .83rem; color: rgba(255,255,255,.6); }

/* ── FORM FIELDS ───────────────────────────────────────── */
.ct-form { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

.ct-field { display: flex; flex-direction: column; gap: .45rem; }

.ct-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .83rem; font-weight: 700;
  color: var(--text-mid);
  letter-spacing: .03em; text-transform: uppercase;
}
.ct-label svg { color: var(--green-mid); flex-shrink: 0; }
.ct-req { color: var(--red-accent); font-size: .8rem; margin-left: .1rem; }

.ct-input {
  width: 100%;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: none;
  line-height: 1.6;
}
.ct-input::placeholder { color: var(--text-light); }
.ct-input:focus {
  border-color: var(--green-mid);
  background: var(--warm-white);
  box-shadow: 0 0 0 3px rgba(45,90,69,.1);
}
.ct-input.has-error {
  border-color: var(--red-accent);
  box-shadow: 0 0 0 3px rgba(192,74,42,.1);
}
.ct-input.has-success { border-color: #28a745; }

.ct-textarea { min-height: 160px; resize: vertical; }

.ct-char-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  min-height: 1.2rem;
}
.ct-chars { font-size: .76rem; color: var(--text-light); flex-shrink: 0; }
.ct-chars.warn { color: #c07030; font-weight: 700; }

.ct-error {
  font-size: .8rem; color: var(--red-accent);
  font-weight: 600; display: block;
  min-height: 1rem;
  animation: fadeUp .2s ease;
}

/* ── SUBMIT BUTTON ─────────────────────────────────────── */
.ct-submit {
  position: relative;
  width: 100%;
  background: var(--green-mid);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .02em;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(45,90,69,.25);
}
.ct-submit:hover:not(:disabled) {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,51,39,.3);
}
.ct-submit:active:not(:disabled) { transform: translateY(0); }
.ct-submit:disabled { opacity: .75; cursor: not-allowed; transform: none; }

.btn-idle, .btn-sending {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%;
}
.btn-sending { display: none; }

/* Spinner */
.ct-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ct-privacy {
  display: flex; align-items: flex-start; gap: .4rem;
  font-size: .78rem; color: var(--text-light);
  line-height: 1.5; margin-top: -.4rem;
}
.ct-privacy svg { flex-shrink: 0; color: var(--green-mid); margin-top: .1rem; }

/* ── SUCCESS PANEL ─────────────────────────────────────── */
.ct-success-panel {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
  animation: fadeUp .45s ease;
}
.ct-success-panel.show { display: block; }

.success-circle {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.3rem;
  color: white;
  box-shadow: 0 8px 28px rgba(45,90,69,.3);
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.ct-success-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 900;
  color: var(--green-deep); margin-bottom: .8rem;
}
.ct-success-panel p {
  font-size: .95rem; color: var(--text-mid);
  line-height: 1.7; max-width: 400px; margin: 0 auto 1.5rem;
}
.ct-success-panel strong { color: var(--green-mid); }

.ct-reset-btn {
  background: transparent;
  border: 2px solid var(--green-mid);
  color: var(--green-mid);
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.ct-reset-btn:hover { background: var(--green-mid); color: white; }

/* ── SIDEBAR EXTRAS ────────────────────────────────────── */
.home-widget-link {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--green-mid); color: white;
  padding: .85rem 1rem; border-radius: 4px;
  font-weight: 700; font-size: .92rem;
  transition: background var(--transition);
  text-decoration: none;
}
.home-widget-link:hover { background: var(--green-deep); color: white; }

.ct-info-list { display: flex; flex-direction: column; gap: .8rem; }
.ct-info-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  list-style: none;
}
.ct-info-icon {
  width: 32px; height: 32px;
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green-mid);
}
.ct-info-label {
  display: block; font-size: .73rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-light); margin-bottom: .1rem;
}
.ct-info-value {
  font-size: .88rem; font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition);
}
a.ct-info-value:hover { color: var(--green-mid); }

.ct-topics { display: flex; flex-direction: column; gap: .45rem; }
.ct-topics li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .87rem; color: var(--text-mid);
  list-style: none; padding: .3rem 0;
  border-bottom: 1px solid var(--border);
}
.ct-topics li:last-child { border-bottom: none; }
.ct-dot {
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}

/* ── EXPLORE SECTION ───────────────────────────────────── */
.ct-explore {
  background: var(--ivory-dark);
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 1rem;
}
.ct-explore-inner { max-width: var(--max-w); margin: auto; }
.ct-explore-sub {
  text-align: center;
  font-size: .9rem; color: var(--text-light);
  margin-top: -.8rem; margin-bottom: 2rem;
}
.ct-explore-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.ct-ex-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none;
}
.ct-ex-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); color: inherit; }
.ct-ex-card span { font-size: 1.8rem; }
.ct-ex-card h3 {
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 800;
  color: var(--green-deep);
}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ct-wrap { grid-template-columns: 1fr 260px; }
  .ct-explore-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .ct-wrap { grid-template-columns: 1fr; }
  .ct-hero-title { font-size: 2rem; }
  .ct-hero-arabic { display: none; }
  .ct-explore-grid { grid-template-columns: repeat(3, 1fr); }
  .ct-form { padding: 1.5rem; }
  .ct-form-header { padding: 1.2rem 1.5rem; }
}
@media (max-width: 520px) {
  .ct-hero-title { font-size: 1.65rem; }
  .ct-explore-grid { grid-template-columns: repeat(2, 1fr); }
}
