/* Atraf unified UI */
:root{
  --bg:#f4f0e7;
  --bg-soft:#faf8f3;
  --surface:#ffffff;
  --surface-2:#f7f4ed;
  --text:#173a30;
  --muted:#68716c;
  --muted-2:#8a887f;
  --line:#ddd6ca;
  --line-strong:#cbc2b4;
  --primary:#145a43;
  --primary-dark:#0d4734;
  --primary-soft:#e9f3ee;
  --warning-bg:#fff8e8;
  --warning-line:#ead9aa;
  --danger-bg:#fff2f0;
  --danger-line:#efc8c2;
  --danger:#8c3027;
  --success-bg:#ebf5f0;
  --shadow:0 16px 48px rgba(30,54,45,.07);
  --radius-xl:26px;
  --radius-lg:18px;
  --radius-md:13px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(20,90,67,.045), transparent 25%),
    linear-gradient(180deg,#f7f3eb 0%,var(--bg) 100%);
  color:var(--text);
  font-family:Tahoma,Arial,sans-serif;
  direction:rtl;
}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit}
img{max-width:100%}

.container{
  width:min(1140px,calc(100% - 36px));
  margin-inline:auto;
}

.site-header{
  padding:22px 0 14px;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand-lockup{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.brand-name{
  margin:0;
  color:var(--primary);
  font-size:34px;
  font-weight:900;
  letter-spacing:-.7px;
  line-height:1;
}

.brand-subtitle{
  color:#817c72;
  font-size:11px;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}

.btn{
  min-height:44px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-size:13px;
  font-weight:900;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}

.btn:hover{transform:translateY(-1px)}

.btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 7px 18px rgba(20,90,67,.14);
}

.btn-primary:hover{background:var(--primary-dark)}

.btn-secondary{
  background:#fff;
  color:var(--text);
  border-color:var(--line);
}

.btn-secondary:hover{border-color:var(--line-strong);background:#fdfcf9}

.btn-ghost{
  background:transparent;
  color:var(--primary);
  border-color:transparent;
}

.page-main{padding:18px 0 46px}

/* Home */
.home-hero{
  position:relative;
  overflow:hidden;
  padding:54px 50px;
  border:1px solid var(--line);
  border-radius:30px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
}

.home-hero::after{
  content:"";
  position:absolute;
  inset:auto auto -130px -90px;
  width:300px;
  height:300px;
  border-radius:50%;
  background:rgba(20,90,67,.045);
  pointer-events:none;
}

.eyebrow{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:8px 13px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:12px;
  font-weight:900;
}

.home-hero h1{
  max-width:780px;
  margin:19px 0 0;
  font-size:clamp(40px,6vw,66px);
  line-height:1.12;
  letter-spacing:-1.4px;
}

.home-hero .lead{
  max-width:760px;
  margin:20px 0 0;
  color:#626a65;
  font-size:17px;
  line-height:2;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:27px;
}

.stats-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:18px;
}

.stat-card,
.audience-card,
.step-card,
.panel{
  border:1px solid var(--line);
  background:rgba(255,255,255,.95);
  border-radius:var(--radius-lg);
}

.stat-card{padding:18px 20px}
.stat-label{font-size:11px;color:var(--muted-2);font-weight:800}
.stat-value{margin-top:6px;font-size:15px;font-weight:900;color:var(--text)}

.section{margin-top:22px}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:13px;
}

.section-title{margin:0;font-size:23px;letter-spacing:-.3px}
.section-copy{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.8}

.audience-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.audience-card{padding:22px}
.card-kicker{font-size:11px;color:var(--primary);font-weight:900}
.audience-card h3{margin:10px 0 8px;font-size:18px}
.audience-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.85}

.steps-panel{
  padding:26px;
  border-radius:24px;
  background:var(--primary);
  color:#fff;
}

.steps-panel .section-title{color:#fff}
.steps-panel .section-copy{color:#dcebe5}

.steps-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:20px;
}

.step-card{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  padding:17px;
}

.step-no{font-size:10px;color:#cfe5dc;font-weight:900}
.step-card strong{display:block;margin-top:8px;font-size:14px}
.step-card span{display:block;margin-top:6px;color:#dce9e4;font-size:11px;line-height:1.7}

.site-footer{
  padding:22px 0 36px;
  color:#817d75;
  font-size:11px;
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line);
  padding-top:20px;
}

/* Forms / auth — refined professional layout */
.auth-wrap{
  padding:18px 0 52px;
}

.auth-layout{
  display:grid;
  grid-template-columns:minmax(340px,.78fr) minmax(540px,1.12fr);
  grid-template-areas:"aside card";
  gap:20px;
  align-items:stretch;
  direction:ltr;
}

.auth-card,
.auth-aside{
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 22px 60px rgba(29,55,45,.08);
  overflow:hidden;
}

.auth-card{
  grid-area:card;
  direction:rtl;
  min-height:660px;
  padding:38px 42px 34px;
  background:rgba(255,255,255,.98);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.auth-aside{
  grid-area:aside;
  direction:rtl;
  position:relative;
  min-height:660px;
  padding:42px 34px 34px;
  color:#fff;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(160deg,#145a43 0%,#0e4736 100%);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.auth-aside::before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  left:-130px;
  top:-110px;
}

.auth-aside::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  right:-115px;
  bottom:-105px;
  background:rgba(255,255,255,.045);
}

.auth-aside > *{
  position:relative;
  z-index:1;
}

.auth-aside .eyebrow{
  padding:8px 12px;
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
}

.auth-aside h2{
  max-width:390px;
  margin:20px 0 0;
  color:#fff;
  font-size:40px;
  line-height:1.3;
  letter-spacing:-.7px;
}

.auth-aside p{
  max-width:410px;
  margin:16px 0 0;
  color:#dcebe5;
  font-size:14px;
  line-height:2;
}

.aside-points{
  display:grid;
  gap:10px;
  margin-top:34px;
}

.aside-point{
  padding:14px 15px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(4px);
}

.aside-point strong{
  display:block;
  color:#fff;
  font-size:13px;
}

.aside-point span{
  display:block;
  margin-top:5px;
  color:#d9e8e2;
  font-size:11px;
  line-height:1.75;
}

.auth-heading{
  margin-bottom:24px;
}

.auth-title{
  margin:0;
  color:#173a30;
  font-size:34px;
  line-height:1.25;
  letter-spacing:-.5px;
}

.auth-description{
  max-width:600px;
  margin:9px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
}

.form-alert{
  margin-bottom:18px;
  padding:14px 16px;
  border:1px solid var(--danger-line);
  border-radius:13px;
  background:var(--danger-bg);
  color:var(--danger);
  font-size:12px;
  line-height:1.85;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px 14px;
}

.field{
  display:grid;
  align-content:start;
  gap:7px;
}

.field-full{
  grid-column:1/-1;
}

.field label{
  color:#24463b;
  font-size:12px;
  font-weight:900;
}

.input,
.select{
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid #d7d0c5;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  outline:none;
  font-size:13px;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}

.input:hover,
.select:hover{
  border-color:#c5bcaf;
}

.input:focus,
.select:focus{
  border-color:#83a999;
  box-shadow:0 0 0 4px rgba(20,90,67,.08);
  background:#fff;
}

.field-hint{
  margin:0;
  color:#8b887f;
  font-size:10px;
  line-height:1.65;
}

.form-actions{
  margin-top:20px;
}

.form-actions .btn{
  width:100%;
  min-height:50px;
  border-radius:12px;
  font-size:13px;
}

.auth-switch{
  margin-top:16px;
  text-align:center;
  color:#74756f;
  font-size:11.5px;
}

.auth-switch a{
  color:var(--primary);
  font-weight:900;
}

.security-note{
  margin-top:15px;
  padding:13px 14px;
  border:1px solid #e5ded2;
  border-radius:12px;
  background:#f8f5ee;
  color:#77746c;
  font-size:10.5px;
  line-height:1.75;
}

.success-state{
  min-height:500px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.success-icon{
  width:66px;
  height:66px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--success-bg);
  color:var(--primary);
  font-size:29px;
  font-weight:900;
}

.success-state h2{
  margin:18px 0 0;
  font-size:30px;
}

.success-state p{
  max-width:440px;
  margin:10px 0 20px;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}


/* Dashboard */
.dashboard-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:15px;
}

.panel{padding:22px}
.panel-title{margin:0 0 16px;font-size:18px}

.welcome-panel{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:25px;
}

.welcome-panel h1{margin:5px 0 0;font-size:27px}
.muted{color:var(--muted);font-size:12px}

.status-pill{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
}

.status-pending{background:#fff5d8;color:#856514}
.status-active{background:#e7f3ed;color:var(--primary)}
.status-blocked{background:#fdeceb;color:#96372e}

.info-list{display:grid;gap:0}
.info-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid #eee9e0;
  font-size:12px;
}
.info-row:last-child{border-bottom:0}
.info-row span:first-child{color:var(--muted)}
.info-row strong{overflow-wrap:anywhere;text-align:left}

.notice{
  grid-column:1/-1;
  padding:15px 17px;
  border-radius:14px;
  border:1px solid var(--warning-line);
  background:var(--warning-bg);
  color:#725b20;
  font-size:12px;
  line-height:1.8;
}

.quick-actions{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.action-card{
  min-height:112px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
}

.action-card strong{display:block;font-size:13px}
.action-card span{display:block;margin-top:6px;color:var(--muted);font-size:10.5px;line-height:1.7}
.action-card.disabled{opacity:.62}

/* Deals */
.protected-box{
  padding:30px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow);
}

@media (max-width:900px){
  .auth-layout{
    grid-template-columns:1fr;
    grid-template-areas:
      "card"
      "aside";
    direction:rtl;
  }

  .dashboard-grid{
    grid-template-columns:1fr;
  }

  .auth-card,
  .auth-aside{
    min-height:auto;
  }

  .auth-aside{
    padding:30px 26px;
  }

  .auth-aside h2{
    font-size:32px;
  }

  .steps-grid{grid-template-columns:repeat(2,1fr)}
  .audience-grid,.stats-strip{grid-template-columns:1fr}
}

@media (max-width:640px){
  .container{width:min(100% - 24px,1140px)}
  .site-header{padding-top:16px}
  .site-nav{align-items:flex-start}
  .brand-name{font-size:29px}
  .brand-subtitle{font-size:9.5px}
  .nav-actions{gap:7px}
  .btn{min-height:40px;padding:0 13px;font-size:11px}

  .home-hero{padding:34px 22px;border-radius:22px}
  .home-hero h1{font-size:39px}
  .home-hero .lead{font-size:14px}

  .auth-card,.auth-aside{border-radius:21px}
  .auth-card{padding:26px 20px}
  .auth-aside{padding:26px 20px}
  .auth-title{font-size:29px}
  .auth-aside h2{font-size:28px}
  .form-grid{grid-template-columns:1fr}
  .field-full{grid-column:auto}

  .welcome-panel{align-items:flex-start;flex-direction:column}
  .quick-actions{grid-template-columns:1fr}
  .steps-grid{grid-template-columns:1fr}
  .footer-row{align-items:flex-start;flex-direction:column}
}


/* Projects */
.projects-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow);
}

.projects-hero h1{
  margin:9px 0 0;
  font-size:30px;
}

.projects-hero p{
  max-width:650px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.85;
}

.projects-count{
  min-width:150px;
  padding:16px 18px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--line);
}

.projects-count span{
  display:block;
  color:var(--muted);
  font-size:10px;
}

.projects-count strong{
  display:block;
  margin-top:6px;
  color:var(--primary);
  font-size:28px;
}

.project-success-notice{
  margin-top:15px;
  padding:14px 17px;
  border:1px solid #cfe4d9;
  border-radius:14px;
  background:#edf7f1;
  color:#225c47;
  font-size:12px;
  font-weight:800;
}

.project-empty{
  margin-top:16px;
  padding:58px 28px;
  border:1px dashed #d5cec1;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  text-align:center;
}

.project-empty-icon{
  width:58px;
  height:58px;
  margin:0 auto 15px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:30px;
  font-weight:500;
}

.project-empty h2{
  margin:0;
  font-size:21px;
}

.project-empty p{
  max-width:520px;
  margin:9px auto 20px;
  color:var(--muted);
  font-size:12px;
  line-height:1.85;
}

.projects-list{
  display:grid;
  gap:14px;
  margin-top:16px;
}

.project-card{
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 32px rgba(31,55,46,.05);
}

.project-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.project-card h2{
  margin:10px 0 0;
  font-size:19px;
}

.project-id{
  color:#9a968d;
  font-size:10px;
  direction:ltr;
}

.project-status{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-size:9.5px;
  font-weight:900;
}

.project-status-draft{background:#f2efe8;color:#6f6a60}
.project-status-success{background:#e7f3ed;color:#1d684d}
.project-status-danger{background:#fdeceb;color:#98392f}
.project-status-review{background:#eaf2f9;color:#365f7c}
.project-status-warning{background:#fff5d8;color:#856514}

.project-meta-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}

.project-meta{
  padding:13px;
  border:1px solid #ebe5dc;
  border-radius:13px;
  background:var(--surface-2);
}

.project-meta span{
  display:block;
  color:var(--muted);
  font-size:9.5px;
}

.project-meta strong{
  display:block;
  margin-top:5px;
  color:var(--text);
  font-size:11px;
  overflow-wrap:anywhere;
}

.project-card-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:15px;
  padding-top:13px;
  border-top:1px solid #eee9e0;
  color:var(--muted);
  font-size:9.5px;
}

/* Project form */
.project-form-shell{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow);
}

.project-form-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:28px 30px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#fcfaf6 100%);
}

.project-form-heading h1{
  margin:9px 0 0;
  font-size:30px;
}

.project-form-heading p{
  max-width:680px;
  margin:9px 0 0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.85;
}

.draft-badge{
  min-width:84px;
  padding:11px 13px;
  border:1px solid #ddd6ca;
  border-radius:13px;
  background:#f4f1ea;
  color:#716c63;
  text-align:center;
  font-size:10px;
  font-weight:900;
  direction:ltr;
}

.draft-badge span{
  display:block;
  margin-top:3px;
  direction:rtl;
  font-size:9px;
  font-weight:700;
}

.project-form{
  padding:0 30px 30px;
}

.project-form-section{
  padding:26px 0;
  border-bottom:1px solid #eee9e0;
}

.project-form-section:last-of-type{
  border-bottom:0;
}

.project-section-title{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.project-section-title > span{
  min-width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:10px;
  font-weight:900;
}

.project-section-title h2{
  margin:0;
  font-size:17px;
}

.project-section-title p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.7;
}

.textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  padding:12px 13px;
  border:1px solid #d7d0c5;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  outline:none;
  font-family:inherit;
  font-size:13px;
  line-height:1.8;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.textarea:focus{
  border-color:#83a999;
  box-shadow:0 0 0 4px rgba(20,90,67,.08);
}

.readonly-field{
  min-height:48px;
  padding:13px;
  border:1px solid #e1dbd0;
  border-radius:12px;
  background:#f6f3ed;
  color:#77736b;
  font-size:12px;
}

.check-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 15px;
  border:1px solid #dfe5df;
  border-radius:13px;
  background:#f6faf7;
  cursor:pointer;
}

.check-card input{
  margin-top:3px;
}

.check-card strong{
  display:block;
  font-size:12px;
}

.check-card small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.7;
}

.project-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:4px;
}

@media (max-width:900px){
  .project-meta-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .projects-hero,
  .project-form-heading{
    align-items:stretch;
    flex-direction:column;
  }

  .projects-count,
  .draft-badge{
    min-width:0;
    width:100%;
  }

  .project-meta-grid{
    grid-template-columns:1fr;
  }

  .project-card-top,
  .project-card-footer{
    flex-direction:column;
  }

  .project-form{
    padding:0 20px 22px;
  }

  .project-form-heading{
    padding:23px 20px;
  }

  .project-form-actions{
    flex-direction:column-reverse;
  }

  .project-form-actions .btn{
    width:100%;
  }
}


/* =========================================================
   Project Create — professional multi-step experience
   ========================================================= */

.project-create-page{
  padding-top:18px;
  padding-bottom:52px;
}

.project-create-shell{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:28px;
  background:#fff;
  box-shadow:0 22px 60px rgba(31,55,46,.08);
}

.project-create-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:start;
  padding:30px 32px 24px;
  border-bottom:1px solid #ebe5db;
  background:
    radial-gradient(circle at 5% 0%, rgba(20,90,67,.05), transparent 28%),
    linear-gradient(180deg,#fff 0%,#fcfaf6 100%);
}

.project-create-head h1{
  margin:9px 0 0;
  color:var(--text);
  font-size:31px;
  line-height:1.3;
}

.project-create-head p{
  max-width:760px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}

.project-draft-mark{
  min-width:112px;
  padding:13px 15px;
  border:1px solid #ded7cb;
  border-radius:15px;
  background:#f6f3ed;
  color:#706b63;
  text-align:center;
}

.project-draft-mark strong{
  display:block;
  color:var(--primary);
  font-size:12px;
}

.project-draft-mark span{
  display:block;
  margin-top:4px;
  font-size:9px;
}

.project-stepbar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  padding:0;
  border-bottom:1px solid #ebe5db;
  background:#ebe5db;
}

.project-step-button{
  min-height:74px;
  padding:13px 15px;
  border:0;
  background:#faf8f3;
  color:#77736b;
  cursor:pointer;
  font-family:inherit;
  text-align:right;
  transition:.18s ease;
}

.project-step-button:hover{
  background:#f6f3ed;
}

.project-step-button.is-active{
  background:#eef6f2;
  color:var(--primary);
}

.project-step-button.is-done{
  background:#f5f8f6;
  color:#356b56;
}

.project-step-button b{
  display:block;
  font-size:10px;
  font-weight:900;
}

.project-step-button span{
  display:block;
  margin-top:5px;
  font-size:11px;
  font-weight:800;
}

.project-form-modern{
  padding:28px 32px 30px;
}

.project-step{
  display:none;
}

.project-step.is-active{
  display:block;
  animation:projectStepIn .18s ease;
}

@keyframes projectStepIn{
  from{opacity:.35;transform:translateY(4px)}
  to{opacity:1;transform:none}
}

.project-step-intro{
  display:flex;
  align-items:flex-start;
  gap:13px;
  margin-bottom:23px;
}

.project-step-number{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:11px;
  font-weight:900;
}

.project-step-intro h2{
  margin:0;
  color:var(--text);
  font-size:19px;
}

.project-step-intro p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.75;
}

.project-type-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:20px;
}

.project-type-option{
  position:relative;
  display:block;
  cursor:pointer;
}

.project-type-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.project-type-card{
  min-height:118px;
  padding:18px;
  border:1px solid #ded8cd;
  border-radius:17px;
  background:#fff;
  transition:.18s ease;
}

.project-type-card strong{
  display:block;
  color:var(--text);
  font-size:14px;
}

.project-type-card span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.75;
}

.project-type-option input:checked + .project-type-card{
  border-color:#91b4a5;
  background:#f1f8f4;
  box-shadow:0 0 0 4px rgba(20,90,67,.06);
}

.project-type-option input:checked + .project-type-card strong{
  color:var(--primary);
}

.project-modern-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px 14px;
}

.project-modern-grid .field-full{
  grid-column:1/-1;
}

.project-modern-grid .field{
  display:grid;
  align-content:start;
  gap:7px;
}

.project-modern-grid .field label{
  color:#23463b;
  font-size:11.5px;
  font-weight:900;
}

.project-modern-grid .input,
.project-modern-grid .select,
.project-modern-grid .textarea{
  width:100%;
  border:1px solid #d7d0c5;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  outline:none;
  font-family:inherit;
  font-size:12.5px;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.project-modern-grid .input,
.project-modern-grid .select{
  min-height:48px;
  padding:11px 13px;
}

.project-modern-grid .textarea{
  min-height:110px;
  padding:12px 13px;
  resize:vertical;
  line-height:1.85;
}

.project-modern-grid .input:focus,
.project-modern-grid .select:focus,
.project-modern-grid .textarea:focus{
  border-color:#85aa9a;
  box-shadow:0 0 0 4px rgba(20,90,67,.07);
}

.project-field-hint{
  margin:0;
  color:#8a877e;
  font-size:9.5px;
  line-height:1.65;
}

.project-group{
  margin-top:20px;
  padding:20px;
  border:1px solid #e7e0d5;
  border-radius:17px;
  background:#fbf9f5;
}

.project-group:first-child{
  margin-top:0;
}

.project-group-head{
  margin-bottom:16px;
}

.project-group-head h3{
  margin:0;
  color:var(--text);
  font-size:14px;
}

.project-group-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.7;
}

.project-conditional{
  display:none;
}

.project-conditional.is-visible{
  display:block;
}

.project-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 15px;
  border:1px solid #dce6df;
  border-radius:13px;
  background:#f5faf7;
}

.project-check input{
  margin-top:3px;
}

.project-check strong{
  display:block;
  color:var(--text);
  font-size:11.5px;
}

.project-check small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.7;
}

.project-form-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:25px;
  padding-top:20px;
  border-top:1px solid #eee9e0;
}

.project-form-nav-left,
.project-form-nav-right{
  display:flex;
  align-items:center;
  gap:9px;
}

.project-form-nav .btn{
  min-width:110px;
}

.project-form-progress{
  color:#8a867e;
  font-size:9.5px;
}

.project-form-note{
  margin-top:18px;
  padding:13px 15px;
  border:1px solid #e8dfd1;
  border-radius:13px;
  background:#faf6ee;
  color:#777168;
  font-size:9.5px;
  line-height:1.75;
}

.project-review-box{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}

.project-review-item{
  padding:13px;
  border:1px solid #e4ddd2;
  border-radius:13px;
  background:#faf8f4;
}

.project-review-item span{
  display:block;
  color:var(--muted);
  font-size:9px;
}

.project-review-item strong{
  display:block;
  margin-top:5px;
  color:var(--text);
  font-size:11px;
  overflow-wrap:anywhere;
}

@media (max-width:800px){
  .project-create-head{
    grid-template-columns:1fr;
  }

  .project-draft-mark{
    min-width:0;
    width:100%;
  }

  .project-stepbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .project-type-grid,
  .project-modern-grid,
  .project-review-box{
    grid-template-columns:1fr;
  }

  .project-modern-grid .field-full{
    grid-column:auto;
  }
}

@media (max-width:560px){
  .project-create-head{
    padding:24px 20px 20px;
  }

  .project-create-head h1{
    font-size:26px;
  }

  .project-stepbar{
    grid-template-columns:1fr;
  }

  .project-step-button{
    min-height:58px;
  }

  .project-form-modern{
    padding:22px 20px 24px;
  }

  .project-form-nav{
    align-items:stretch;
    flex-direction:column;
  }

  .project-form-nav-left,
  .project-form-nav-right{
    width:100%;
  }

  .project-form-nav .btn{
    flex:1;
  }
}


/* =========================================================
   Enterprise Project Form — Corporate Edition
   ========================================================= */

.project-create-page{
  padding-top:26px;
  padding-bottom:64px;
}

.project-create-shell{
  overflow:visible;
  border:1px solid #ded8cd;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 70px rgba(31,55,46,.075);
}

.project-create-head{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:center;
  padding:36px 38px 30px;
  border-bottom:0;
  background:
    radial-gradient(circle at 5% 0%, rgba(20,90,67,.055), transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#fbfaf7 100%);
}

.project-create-head::after{
  content:"";
  position:absolute;
  right:38px;
  left:38px;
  bottom:0;
  height:1px;
  background:#ece7de;
}

.project-create-head .eyebrow{
  padding:7px 11px;
  border-radius:999px;
  background:#edf5f1;
  color:var(--primary);
  font-size:10px;
  font-weight:900;
}

.project-create-head h1{
  margin:12px 0 0;
  max-width:760px;
  color:#173a30;
  font-size:34px;
  line-height:1.3;
  letter-spacing:-.7px;
}

.project-create-head p{
  max-width:820px;
  margin:11px 0 0;
  color:#6f756f;
  font-size:12px;
  line-height:1.95;
}

.project-draft-mark{
  min-width:160px;
  padding:15px 18px;
  border:1px solid #dfe5df;
  border-radius:14px;
  background:#f4f8f5;
  color:#607167;
  text-align:center;
}

.project-draft-mark strong{
  display:block;
  color:var(--primary);
  font-size:12px;
}

.project-draft-mark span{
  display:block;
  margin-top:4px;
  font-size:9px;
}

.project-stepbar{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0 38px;
  padding:0;
  border-bottom:1px solid #e8e3da;
  background:transparent;
}

.project-step-button{
  position:relative;
  min-height:64px;
  padding:0 12px;
  border:0;
  background:transparent;
  color:#7b7b75;
  cursor:pointer;
  font-family:inherit;
  text-align:center;
  transition:.18s ease;
}

.project-step-button::after{
  content:"";
  position:absolute;
  right:18%;
  left:18%;
  bottom:-1px;
  height:2px;
  border-radius:2px 2px 0 0;
  background:transparent;
  transition:.18s ease;
}

.project-step-button:hover{
  background:transparent;
  color:#3f5e52;
}

.project-step-button.is-active{
  background:transparent;
  color:var(--primary);
}

.project-step-button.is-active::after{
  background:var(--primary);
}

.project-step-button.is-done{
  background:transparent;
  color:#4b735f;
}

.project-step-button.is-done::before{
  content:"✓";
  display:inline-flex;
  width:17px;
  height:17px;
  margin-left:7px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e8f3ed;
  color:#26654d;
  font-size:9px;
  vertical-align:middle;
}

.project-step-button b{
  display:none !important;
}

.project-step-button span{
  display:inline-block;
  margin:0;
  font-size:11px;
  font-weight:900;
}

.project-form-modern{
  padding:34px 38px 36px;
}

.project-step{
  max-width:1050px;
  margin:0 auto;
}

.project-step-intro{
  display:block;
  margin-bottom:26px;
  padding-bottom:18px;
  border-bottom:1px solid #eee9e1;
}

.project-step-number{
  display:none !important;
}

.section-kicker{
  display:inline-block;
  margin-bottom:7px;
  color:#6a8d7e;
  font-size:9px;
  font-weight:900;
  letter-spacing:.1px;
}

.project-step-intro h2{
  margin:0;
  color:#173a30;
  font-size:22px;
  letter-spacing:-.3px;
}

.project-step-intro p{
  max-width:720px;
  margin:7px 0 0;
  color:#777b76;
  font-size:10.5px;
  line-height:1.8;
}

.project-type-grid{
  gap:14px;
  margin-bottom:22px;
}

.project-type-card{
  min-height:120px;
  padding:20px;
  border:1px solid #dfd9cf;
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 25px rgba(31,55,46,.025);
}

.project-type-card strong{
  font-size:14px;
}

.project-type-card span{
  margin-top:8px;
  max-width:460px;
  font-size:10.5px;
  line-height:1.8;
}

.project-type-option input:checked + .project-type-card{
  border-color:#8faf9f;
  background:#f4f9f6;
  box-shadow:
    0 0 0 3px rgba(20,90,67,.05),
    0 10px 30px rgba(31,55,46,.035);
}

.project-modern-grid{
  gap:17px 16px;
}

.project-modern-grid .field label{
  color:#27483e;
  font-size:11px;
}

.project-modern-grid .input,
.project-modern-grid .select{
  min-height:50px;
  padding:12px 14px;
  border-radius:11px;
  font-size:12.5px;
}

.project-modern-grid .textarea{
  min-height:116px;
  padding:13px 14px;
  border-radius:11px;
  font-size:12px;
}

.project-group{
  margin-top:22px;
  padding:22px;
  border:1px solid #e8e2d8;
  border-radius:16px;
  background:#fbfaf7;
}

.project-group-head{
  margin-bottom:18px;
}

.project-group-head h3{
  font-size:14px;
}

.project-group-head p{
  margin-top:5px;
  font-size:9.5px;
}

.project-check{
  padding:15px 16px;
  border-radius:12px;
}

.project-form-note{
  padding:14px 16px;
  border-radius:12px;
}

.project-form-nav{
  margin-top:30px;
  padding-top:22px;
  border-top:1px solid #ece7df;
}

.project-form-progress{
  min-width:150px;
  color:#6f756f;
  font-size:9.5px;
  font-weight:800;
  text-align:center;
}

.project-form-nav .btn{
  min-width:120px;
  min-height:45px;
  border-radius:11px;
}

@media (max-width:900px){
  .project-create-head{
    grid-template-columns:1fr;
    padding:30px 26px 24px;
  }

  .project-create-head::after{
    right:26px;
    left:26px;
  }

  .project-draft-mark{
    min-width:0;
    width:100%;
  }

  .project-stepbar{
    margin:0 26px;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .project-form-modern{
    padding:28px 26px 30px;
  }
}

@media (max-width:560px){
  .project-create-head{
    padding:24px 20px 20px;
  }

  .project-create-head::after{
    right:20px;
    left:20px;
  }

  .project-create-head h1{
    font-size:27px;
  }

  .project-stepbar{
    margin:0 20px;
    grid-template-columns:1fr;
    border-bottom:0;
  }

  .project-step-button{
    min-height:48px;
    text-align:right;
    border-bottom:1px solid #eee9e1;
  }

  .project-step-button::after{
    right:0;
    left:auto;
    width:3px;
    top:10px;
    bottom:10px;
    height:auto;
  }

  .project-form-modern{
    padding:24px 20px 26px;
  }

  .project-form-progress{
    display:none;
  }
}
