:root {
  --pink-light: #FCEEEE; /* svetlija pink */
  --cream: #FFF9F2;
  --brown: #8C5A52;
}

/* =========================
WRAPPER
========================= */

#ccbp-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  font-family: Arial, sans-serif;
  color: var(--brown);
  border-radius: 20px;
  box-sizing: border-box;
}

/* =========================
HEADER
========================= */

.ccbp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.header-left {
  flex: 0 0 280px;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Birth Preferences highlight */
.birth-preferences {
  background: var(--pink-light);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  display: inline-block;
}

/* =========================
ABOUT
========================= */

.ccbp-about {
  background: transparent; /* uklonjena pozadina */
  padding: 20px;
  border-radius: 15px;
}

.ccbp-about textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  background: var(--pink-light) !important;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

.ccbp-about textarea:focus {
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* =========================
INPUT FIELDS
========================= */

.ccbp-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  margin-top: 20px;
  width: 100%;
}

.ccbp-field {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ccbp-field label {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  margin-right: 6px;
  white-space: nowrap;
}

.ccbp-field input,
.ccbp-field select {
  width: 80%;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease, transform 0.1s ease;
  background: var(--pink-light) !important;
  appearance: none;
}

.ccbp-field select {
appearance: auto !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%238C5A52' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding: 8px !important;
}


.ccbp-field input:focus,
.ccbp-field select:focus {
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

/* =========================
SECTION TITLES
========================= */

h2 {
  margin: 30px 0 15px;
  font-size: 20px;
  color: var(--brown);
}

/* =========================
GRID
========================= */

.ccbp-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

/* Stage layout */
.ccbp-stages-row {
  display: flex;
  gap: 40px; /* veći razmak */
}

.ccbp-stage {
  flex: 1;
  background: rgb(255, 250, 250);
  border-radius: 12px;
  padding: 20px;
margin-top: 20px;
}

/* Stage 1 i 2 po 3 ikonice */
.ccbp-grid.stage12 {
  grid-template-columns: repeat(3, 1fr);
}

/* Stage 3 sa 7 ikonica */
.ccbp-grid.stage3 {
  grid-template-columns: repeat(7, 1fr);
}

/* =========================
CARD
========================= */

.ccbp-card {
  background: rgb(255, 227, 227);
  border-radius: 16px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: .25s ease;
  border: 2px solid transparent;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.ccbp-card:hover {
  border-color: var(--brown);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* =========================
ICON
========================= */

.ccbp-icon {
  position: relative;
  width: 40px; /* smanjeno */
  height: 40px;
  margin: 0 auto 10px;
}

.ccbp-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* =========================
LABEL
========================= */

.ccbp-text {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.3;
}

/* =========================
X OVERLAY
========================= */

.ccbp-x {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 55px;
  color: #c0392b;
  opacity: 0;
  transition: .2s ease;
  pointer-events: none;
}

.ccbp-card.disabled .ccbp-x {
  opacity: 1;
}

.ccbp-card.disabled .ccbp-text {
  text-decoration: line-through;
  opacity: .6;
}

/* =========================
UPLOAD BOX
========================= */

.ccbp-upload-box {
  border: 2px dashed #aaa;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  position: relative;
  width: 250px;
  min-height: 300px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
}



.ccbp-upload-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: static; /* ukloni absolute */
}


.ccbp-upload-box span {
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
  z-index: 2;
}


/* =========================
BROWSE BUTTON
========================= */

#ccbp-photo-browse {
  background: rgb(255, 227, 227);
  color: var(--brown);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: .25s ease;
}

#ccbp-photo-browse:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================
REMOVE BUTTON
========================= */

#ccbp-photo-remove {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--brown);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: .2s ease;
}

#ccbp-photo-remove:hover {
  background: var(--brown);
  color: #fff;
  transform: scale(1.08);
}

/* =========================
DOWNLOAD BUTTON
========================= */

#download-plan {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: .25s ease;
  box-shadow: 0 8px 20px rgba(140,90,82,.25);
}

#download-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(140,90,82,.35);
}

/* =========================
LOGO
========================= */

#ccbp-wrapper .ccbp-logo {
  height: 50px;
  margin-left: auto;
  display: block;
}

/* =========================
FILE INPUT
========================= */

.ccbp-upload-box input[type="file"] {
  position: static !important;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Grupisani logo + Birth Preferences */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right-group img {
  height: 80px;
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {
  #ccbp-wrapper {
    padding: 20px;
    margin: 20px auto;
  }

  .ccbp-header {
    flex-direction: column;
    text-align: center;
  }

  .ccbp-header h1 {
    font-size: 28px;
  }

  .header-right p {
    font-size: 14px;
  }

  .ccbp-fields {
    flex-direction: column;
  }

  .ccbp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-left {
    flex: 0 0 100%;
    width: 100%;
  }

  .ccbp-upload-box {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
  }

  #ccbp-wrapper .ccbp-logo {
    margin-top: 20px;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .ccbp-grid {
    grid-template-columns: 1fr;
  }
}


/* Tableti i manji ekrani */
@media (max-width: 1024px) {
  .ccbp-grid.stage12 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ccbp-grid.stage3 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobilni telefoni */
@media (max-width: 768px) {
  .ccbp-stages-row {
    flex-direction: column;
    gap: 20px;
  }

  .ccbp-grid.stage12 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ccbp-grid.stage3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Veoma mali ekrani */
@media (max-width: 480px) {
  .ccbp-grid.stage12 {
    grid-template-columns: 1fr;
  }

  .ccbp-grid.stage3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ccbp-export-mode {
  width: 1100px !important;
  max-width: 1100px !important;
  padding: 40px !important;
}

.ccbp-export-mode .ccbp-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 30px !important;
}

.ccbp-export-mode .ccbp-stages-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px !important;
}

.ccbp-export-mode .ccbp-grid.stage12 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.ccbp-export-mode .ccbp-grid.stage3 {
  grid-template-columns: repeat(7, 1fr) !important;
}

.ccbp-export-mode .ccbp-upload-box {
  width: 250px !important;
  min-height: 300px !important;
}

/* Responsive za mobilne */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .header-right-group {
    flex-direction: column;
    gap: 8px;
  }

  .header-right-group img {
    height: 70px; /* malo manji logo na mobilnom */
  }
}