
:root{
  --cgf-bg:#fffdf9;
  --cgf-card:#ffffff;
  --cgf-line:#eee4d3;
  --cgf-text:#2c241d;
  --cgf-muted:#77695c;
  --cgf-accent:#b8925d;
  --cgf-accent-dark:#8e6c3f;
  --cgf-soft:#f8f1e7;
  --cgf-shadow:0 18px 45px rgba(74,50,23,.10);
}
.cgf-wrap{
  max-width:780px;
  margin:34px auto;
  padding:0 18px 36px;
}
.cgf-card{
  background:linear-gradient(180deg,#fffefc 0%,#fff 100%);
  border:1px solid var(--cgf-line);
  border-radius:26px;
  padding:34px 30px 28px;
  box-shadow:var(--cgf-shadow);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cgf-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,rgba(184,146,93,0) 0%,rgba(184,146,93,.9) 50%,rgba(184,146,93,0) 100%);
}
.cgf-title{
  margin:0 0 8px;
  font-family:'Cormorant Garamond',serif;
  font-size:40px;
  line-height:1.05;
  font-weight:600;
  color:var(--cgf-text);
  letter-spacing:.2px;
}
.cgf-couple-photo-wrap{
  margin:10px 0 14px;
  display:flex;
  justify-content:center;
}
.cgf-couple-photo{
  display:block;
  max-width:112px;
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:18px;
  border:4px solid #fff;
  box-shadow:0 14px 30px rgba(74,50,23,.15);
}
.cgf-subtitle{
  margin:0 auto 22px;
  max-width:560px;
  color:var(--cgf-muted);
  font-family:'Cormorant Garamond',serif;
  font-size:26px;
  line-height:1.25;
  font-weight:500;
}
.cgf-form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:stretch;
}
.cgf-form input[type=text]{
  flex:1 1 320px;
  min-height:54px;
  padding:14px 16px;
  border:1px solid #deceba;
  border-radius:15px;
  background:#fffdfa;
  font-size:16px;
  color:var(--cgf-text);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.03);
}
.cgf-form input[type=text]:focus{
  outline:none;
  border-color:#c9a36b;
  box-shadow:0 0 0 4px rgba(184,146,93,.14);
}
.cgf-form button,
.cgf-button{
  min-height:54px;
  padding:14px 20px;
  border:0;
  border-radius:15px;
  background:linear-gradient(135deg,var(--cgf-accent) 0%,#c6a46c 45%,var(--cgf-accent-dark) 100%);
  color:#fff;
  font-size:15px;
  font-family:'Inter',sans-serif;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(184,146,93,.24);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.cgf-form button:hover,
.cgf-button:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(184,146,93,.28);
  opacity:.98;
}
.cgf-message,
.cgf-result{
  margin-top:20px;
  padding:18px 18px;
  border-radius:18px;
}
.cgf-message{
  font-family:'Inter',sans-serif;
}
.cgf-message-warning{
  background:#fff8ef;
  border:1px solid #efcf9d;
  color:#5e4524;
}
.cgf-message-error{
  background:#fff4f2;
  border:1px solid #efb0a7;
  color:#7a2c24;
}
.cgf-result{
  background:linear-gradient(180deg,#fffdfa 0%,#fff7ee 100%);
  border:1px solid var(--cgf-line);
}
.cgf-result-label{
  font-family:'Cormorant Garamond',serif;
  font-size:34px;
  font-weight:600;
  line-height:1.1;
  color:var(--cgf-text);
  margin-bottom:8px;
}
.cgf-result-table{
  font-family:'Inter',sans-serif;
  font-size:21px;
  color:#43352a;
  margin-bottom:10px;
}
.cgf-result-table strong{
  font-size:24px;
  color:var(--cgf-accent-dark);
}
.cgf-result-note{
  color:var(--cgf-accent-dark);
  margin:14px 0 18px;
  font-size:28px;
  line-height:1.15;
  font-family:'Great Vibes',cursive;
}
.cgf-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.cgf-button-secondary{
  background:linear-gradient(135deg,#4e4338 0%,#2f2822 100%);
  box-shadow:0 10px 24px rgba(47,40,34,.18);
}
.cgf-gallery-pending{
  color:var(--cgf-muted);
  font-family:'Inter',sans-serif;
  font-size:14px;
}
.cgf-modal[hidden]{display:none}
.cgf-modal{
  position:fixed;
  inset:0;
  z-index:99999;
}
.cgf-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(31,24,18,.70);
  backdrop-filter:blur(6px);
}
.cgf-modal-dialog{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:min(92vw,1180px);
  max-height:90vh;
  margin:5vh auto;
  padding:16px;
}
.cgf-modal-image{
  display:block;
  max-width:100%;
  max-height:calc(90vh - 32px);
  width:auto;
  height:auto;
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.40);
  background:#fff;
  border:5px solid #fff;
}
.cgf-modal-close{
  position:absolute;
  top:2px;
  right:8px;
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#231c16;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
}
body.cgf-modal-open{overflow:hidden}
@media(max-width:640px){
  .cgf-wrap{margin:22px auto;padding:0 12px}
  .cgf-card{padding:24px 18px 22px;border-radius:22px}
  .cgf-title{font-size:32px}
  .cgf-subtitle{font-size:22px;margin-bottom:18px}
  .cgf-form button,.cgf-form input[type=text]{width:100%}
  .cgf-couple-photo{max-width:92px;border-radius:16px}
  .cgf-result-label{font-size:28px}
  .cgf-result-note{font-size:24px}
  .cgf-modal-dialog{max-width:96vw;padding:12px}
  .cgf-modal-image{max-height:calc(88vh - 24px);border-radius:18px}
}
