/* Choose categories page (part of profile page(?)) */
/* === Modern Category Checkbox Grid === */
/* === Job Category Alert Form === */

.job_alert_title {
  grid-column: 1/-1; 
  grid-row: 2; 
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;             /* mobile-first */
  line-height: 2.125rem;
  padding: 0 !important; 
  margin: 0 !important; 
}

/* Hide default <br> elements if present */
.job_alert_categories br { display: none; }

/* Hide raw checkboxes */
.job_alert_categories input[type="checkbox"] { display: none; }

/* CATEGORY LIST
   Mobile: 1 column full width.
   Scales up to 2 and 3 columns at larger widths. */
.job_alert_categories {
  grid-column: 1/-1; 
  grid-row: 4; 
  display: grid;
  grid-template-columns: 1fr;     /* mobile-first */
  gap: 0.75rem 1rem;
  padding: 0.5rem 0;
  justify-items: stretch;
  width: 100%;
  max-width: 560px;               /* keep it readable */
  margin: 0 auto;
}
@media (min-width: 480px){
  .job_alert_categories{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px){
  .job_alert_categories{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.job_alert_categories label {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

/* Container per item */
.checkbox-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide the checkbox */
.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

/* keep grid control – but avoid duplicate display collisions on mobile */
.checkbox-item { display: flex; justify-content: center; }

/* Style the label as a button */
.checkbox-item label {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
.checkbox-item label:hover {
  background-color: #e0e7ff;
  border-color: #6366f1;
}

/* When checkbox is checked */
.checkbox-item input[type="checkbox"]:checked + label {
  background-color: #6366f1;
  color: white;
  border-color: #4f46e5;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Submit button style */
.profil_indhold_jobalert input[type="submit"] {
  grid-column: 1/-1; 
  grid-row: 14; 
  display: block;
  width: 92%;                    /* full width on mobile */
  max-width: 560px;               /* match list width */
  margin: 0.75rem auto 0;
  height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #fff;                    /* Default text color */
  background-color: rgba(64, 62, 67, 1) !important; /* Default background */
  border-radius: 15px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; /* Subtle shadow */
  cursor: pointer;
  transition: transform 0.25s ease, 
              font-size 0.25s ease,
              background-color 0.25s ease,
              box-shadow 0.25s ease,
              color 0.25s ease !important;
  font-family: ui-sans-serif, system-ui, sans-serif, 
               "Apple Color Emoji", "Segoe UI Emoji", 
               "Segoe UI Symbol", "Noto Color Emoji" !important;
}
.profil_indhold_jobalert input[type="submit"]:hover {
  background-color: rgba(70, 68, 72, 1) !important; /* Darker on hover */
  color: #fff !important; 
  transform: scale(1.03);        /* gentle zoom for mobile */
  font-size: 1.02rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.hidden { display: none; }

.alert-success {
  margin-top: 20px;
  padding: 15px;
  background-color: #e6fffa;
  border: 1px solid #38b2ac;
  color: #285e61;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  max-width: 560px;               /* match container */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* =======================
   Card-style grid (category cards variant)
   ======================= */

:root{
  --card-bg: #ffffff;
  --card-border: #e6e8f0;
  --card-shadow: 0 4px 14px rgba(20, 20, 43, 0.06);
  --card-hover-shadow: 0 10px 24px rgba(20, 20, 43, 0.12);
  --card-radius: 18px;
  --card-pad: 20px;
  --text-main: #0f172a;
  --text-sub: #5b6475;
  --brand: #2f5aff;   /* active blue */
  --brand-ghost: rgba(47,90,255,0.12);
  --page-gap: 16px;   /* tighter gap for mobile */
}

/* Mobile: single column; scale up with breakpoints */
.category-grid{
  grid-column: 1/-1; 
  grid-row: 8;
  display: grid;
  grid-template-columns: 1fr;                   /* mobile-first */
  gap: max(8px, var(--page-gap));
  max-width: 560px;
  width: 92%; 
  margin: 0 auto;
}
@media (min-width: 480px){
  .category-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px){
  .category-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* prevent cards from exceeding their column width */
.category-card{
  position: relative;
  min-width: 0;
}
.category-card .card{
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* allow long text to wrap instead of expanding the card */
.card-title,
.card-desc{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* hide native checkbox but keep it accessible */
.card-input{
  position: absolute !important;
  opacity: 0 !important;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* the clickable card */
.category-card .card{
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  cursor: pointer;
  min-height: 150px;
  position: relative;
}
.category-card .card:hover{
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

/* icon/title/desc */
.card-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-ghost);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.card-title{
  font-weight: 700;
  font-size: 18px;               /* slightly smaller on mobile */
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 8px;
}
.card-desc{
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-sub);
}

/* check indicator */
.card-check{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid var(--card-border);
  background: #fff;
  display: inline-block;
  transition: all .18s ease;
}
/* inner check mark */
.card-check::after{
  content: "";
  position: absolute;
  width: 12px;
  height: 6px;
  border-left: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(-45deg);
  left: 5px;
  top: 7px;
}

/* focus state (keyboard) */
.card-input:focus + .card{
  outline: 3px solid var(--brand-ghost);
  outline-offset: 3px;
}

/* SELECTED styles */
.card-input:checked + .card{
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--card-hover-shadow);
}
.card-input:checked + .card .card-title,
.card-input:checked + .card .card-desc{ color: #fff; }
.card-input:checked + .card .card-icon{
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.card-input:checked + .card .card-check{
  background: #fff;
  border-color: #fff;
}
.card-input:checked + .card .card-check::after{
  border-left-color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Manchet/intro text */
.job_alert_manchet {
  grid-column: 1/-1; 
  grid-row: 4; 
  width: 92%;                     /* full on mobile */
  max-width: 560px;
  text-align: center; 
  margin: 0.5rem auto 0;
  font-size: 1rem;
  line-height: 1.6rem;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1)); 
  font-weight: 400; 
}

/* Free plan banner */
.plan-box {
  grid-column: 1/-1; 
  grid-row: 6; 
  background: #f0f6ff;
  border: 1px solid #d9e5ff;
  border-radius: 8px;
  padding: 7px 9px;
  margin: 16px auto;
  font-size: 15px;
  color: #1e2a50;
  line-height: 1.4;
  width: 92%;
  max-width: 560px;
}
.plan-box p { margin: 4px 0; text-align: center; }
.plan-icon { color: #1e40af; margin-right: 6px; text-align: center; }
.plan-upgrade { margin-top: 4px; text-align: center; }
.upgrade-link { text-decoration: none; font-weight: 600; color: #6b21a8; text-align: center; }
.upgrade-link:hover { text-decoration: underline; }
.pro-badge {
  background: #7c3aed; color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; margin-left: 4px;
}

/* ========= Timezone Availability (PRO) ========= */
.tz-section{
  grid-column: 1/-1; 
  grid-row: 10; 
  text-align: center;
  padding: 16px 0 24px;
  width: 92%; 
  margin: 0 auto; 
}
.tz-title{
  font-size: 26px;                /* mobile-first */
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
}
.tz-title-icon{ font-size: 26px; }
.tz-pro-pill{
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #7c3aed;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
}
.tz-subtitle{
  margin: 0 auto 18px auto;
  max-width: 92%;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
}
/* Pro banner */
.tz-pro-banner{
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin: 10px auto 26px; max-width: 92%;
  background: #fff8e6; border: 1px solid #f5e1ac; color: #7a5a00;
  padding: 12px 16px; border-radius: 10px;
}
.tz-lock{ font-size: 16px; }
/* Upgrade card */
.tz-upgrade-card{
  margin: 0 auto; max-width: 92%;
  padding: 32px 18px 24px;
  background: #ffffffcc; backdrop-filter: blur(2px);
  border-radius: 20px; box-shadow: 0 10px 30px rgba(20,20,43,0.08);
  border: 1px solid #eef1f7;
}
.tz-upgrade-icon{
  width: 74px; height: 74px; border-radius: 999px;
  margin: -62px auto 12px auto; display: grid; place-items: center;
  font-size: 32px; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 6px 18px rgba(124,58,237,0.35);
}
.tz-upgrade-title{ margin: 6px 0; font-size: 24px; font-weight: 800; color:#0f172a; }
.tz-upgrade-text{
  margin: 0 auto 18px auto; max-width: 40rem; color:#4b5563; font-size: 15px; line-height:1.6;
}
.tz-upgrade-btn{
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(135deg, #6d28d9, #7c3aed); color:#fff; font-weight:800;
  text-decoration: none; box-shadow:0 8px 18px rgba(109,40,217,0.35);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.tz-upgrade-btn:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(109,40,217,0.4); }
.tz-upgrade-price{ margin-top: 8px; font-size: 12px; color:#6b7280; }

@media (min-width: 640px){
  .tz-title{ font-size: 30px; }
  .tz-subtitle{ font-size: 17px; }
  .tz-upgrade-card{ max-width: 820px; padding: 32px 22px 24px; }
}

/* ========= Salary Expectations (PRO) ========= */
.se-section{
  grid-column: 1/-1; 
  grid-row: 12; 
  text-align: center;
  padding: 20px 0 28px;
  width: 92%; 
  margin: 0 auto; 
}
.se-title{
  font-size: 26px;                /* mobile-first */
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex; align-items:center; gap:10px;
  margin: 0 0 10px 0;
}
.se-title-icon{ font-size: 26px; }
.se-pro-pill{
  display: inline-block; font-size: 13px; font-weight:800; color:#fff;
  background:#7c3aed; padding:4px 10px; border-radius:999px; vertical-align:middle;
}
.se-subtitle{
  margin: 0 auto 18px auto; max-width: 92%; color:#374151; font-size:16px; line-height:1.6;
}
/* Pro banner */
.se-pro-banner{
  display:flex; justify-content:center; align-items:center; gap:8px;
  margin:10px auto 26px; max-width:92%;
  background:#fff8e6; border:1px solid #f5e1ac; color:#7a5a00; padding:12px 16px; border-radius:10px;
}
.se-lock{ font-size: 16px; }
/* Upgrade card */
.se-upgrade-card{
  margin:0 auto; max-width:92%;
  padding:34px 18px 24px;
  background:#ffffffcc; border-radius:20px; border:1px solid #eef1f7;
  box-shadow:0 10px 30px rgba(20,20,43,0.08);
}
.se-upgrade-icon{
  width:78px; height:78px; border-radius:999px; margin:-64px auto 12px auto;
  display:grid; place-items:center; font-size:34px; color:#fff;
  background:linear-gradient(135deg,#059669,#047857); box-shadow:0 6px 18px rgba(5,150,105,0.35); font-weight:900;
}
.se-upgrade-title{ margin:6px 0 8px; font-size:24px; font-weight:800; color:#0f172a; }
.se-upgrade-text{ margin:0 auto 18px; max-width:40rem; color:#4b5563; font-size:15px; line-height:1.6; }
.se-upgrade-btn{
  display:inline-block; padding:12px 22px; border-radius:12px;
  background:linear-gradient(135deg,#059669,#10b981); color:#fff; font-weight:800; text-decoration:none;
  box-shadow:0 8px 18px rgba(16,185,129,0.35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.se-upgrade-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(16,185,129,0.42); }
.se-upgrade-price{ margin-top:8px; font-size:12px; color:#6b7280; }

@media (min-width: 640px){
  .se-title{ font-size: 30px; }
  .se-subtitle{ font-size: 17px; }
  .se-upgrade-card{ max-width: 900px; padding: 36px 22px 26px; }
}
