/* =============================================
   qurbani_form.css  –  v3 (Design-matched)
   Colours driven by CSS variables set by PHP
   from WP Admin → Style & Look
   ============================================= */

/* ── CSS variable defaults (overridden by PHP inline style) ── */
:root {
    --qc-primary:       #0E926B;
    --qc-header-bg:     #0E926B;
    --qc-header-text:   #ffffff;
    --qc-active-bg:     #f39c12;
    --qc-active-border: #f39c12;
    --qc-active-text:   #ffffff;
    --qc-btn-bg:        #c51b0c;
    --qc-btn-text:      #ffffff;
    --qc-btn-hover:     #a01508;
    --qc-arrow-color:   #f39c12;
    --qc-card-border:   #dddddd;
    --qc-card-bg:       #ffffff;
    --qc-label-color:   #4D5869;
    --qc-input-border:  #a7a7a7;
    --qc-price-color:   #0E926B;
    --qc-font:          'Sora', Arial, sans-serif;
    --qc-radius:        0px;
}

* { box-sizing: border-box; }

/* =============================================
   OUTER WRAPPER
   ============================================= */
.qc-wrap {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
   
}

/* =============================================
   GREEN HEADER
   ============================================= */
.qc-wrap{
	padding:20px;
}
.qc-header {
    background: var(--qc-header-bg);
    padding: 16px 20px 18px;
    text-align: center;
    color: var(--qc-header-text);
}

.qc-header h3{
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
}
.qc-wrap h2 {
    font-size: 18px;
    font-weight: 700;
	text-decoration:uppercase;
	text-align:center;
    line-height: 1.3;
}

/* ── Select inside header ── */
.qc-header .qc-select-wrap {
    position: relative;
}

.qc-header .qc-select {
    border-color: rgba(255,255,255,0.5);
    color: #333;
    background: #fff;
    font-size: 15px;
	padding-right: 27px !important;
}

/* =============================================
   BODY
   ============================================= */
/* .qc-body {
    padding: 20px;
} */

/* =============================================
   CUSTOM SELECT WRAPPER
   ============================================= */
.qc-select-wrap {
    position: relative;
}

.qc-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid var(--qc-input-border);
    background: #fff;
    font-size: 15px;
   
    color: #333;
    appearance: none;
    cursor: pointer;
    border-radius: var(--qc-radius);
    outline: none;
    transition: border-color 0.2s;
}

.qc-select:focus {
    border-color: var(--qc-arrow-color);
    box-shadow: 0 0 0 2px rgba(243,156,18,0.18);
}

/* Custom chevron arrow */
.qc-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--qc-arrow-color);
    border-bottom: 2px solid var(--qc-arrow-color);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}
.qc-arrow button {
    flex: 1;
    border: none;
	outline:none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    color: #e69500;
}
.qc-up::after {
  content: "";
  display: block;
  margin: 4px auto;
  width: 6px;
  height: 6px;
  border-top: 2px solid #f39c12;
  border-right: 2px solid #f39c12;
  transform: rotate(-45deg);
}
.qc-down::after {
  content: "";
  display: block;
  margin: 2px auto;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid #f39c12;
  border-right: 2px solid #f39c12;
  transform: rotate(45deg);
}
/* =============================================
   ANIMAL CARDS  – GRID MODE (≤3)
   ============================================= */
.qc-animal-grid {
    display: flex;
    gap: 10px;
    margin: 20px 0 0;
}

/* =============================================
   ANIMAL CARDS  – SLIDER MODE (>3)
   ============================================= */
.qc-slider-outer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 0;
    position: relative;
}

.qc-slider-viewport {
    flex: 1;
    overflow: hidden;
}

.qc-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

/* Arrow buttons */
.qc-slider-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--qc-arrow-color);
    background: #fff;
    color: var(--qc-arrow-color);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--qc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.qc-slider-arrow:hover:not(:disabled) {
    background: var(--qc-arrow-color) !important;
    color: #fff !important;
}
.qc-wrap [type=button]:hover, 
.qc-wrap button:hover{
	 background: var(--qc-arrow-color) !important;
}

.qc-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Slider dots */
.qc-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.qc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.qc-dot.active {
    background: var(--qc-active-bg) !important;
}

/* =============================================
   ANIMAL CARD  (shared styles)
   ============================================= */
.qc-animal-card {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--qc-card-border);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--qc-card-bg);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

/* In slider, cards have fixed width (3 visible) */
.qc-slider-track .qc-animal-card {
    flex: 0 0 calc((100% - 30px) / 3);  /* 3 visible, 2 gaps of 15px */
}

/* SVG icon */
.qc-animal-svg svg,
.qc-animal-svg {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    display: block;
}

.qc-animal-svg svg {
    fill: #000;
    transition: fill 0.2s;
}

/* Emoji icon fallback */
.qc-animal-emoji {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
}

.qc-animal-info { flex: 1; min-width: 0; }

.qc-animal-info h4 {
    display: block;
    color: var(--qc-price-color);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qc-animal-share {
    margin: 0;
    font-size: 9px;
    color: #777;
    line-height: 1.3;
}

.qc-animal-price {
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--qc-price-color);
    min-height: 16px;
}

/* ── ACTIVE card state (orange) ── */
.qc-animal-card.active ,
.qc-animal-card:hover{
    background: var(--qc-active-bg);
    border-color: var(--qc-active-border);
}
.qc-animal-card.active img,
.qc-animal-card:hover img {
    filter: brightness(0) saturate(100%) invert(95%) sepia(95%) saturate(29%) hue-rotate(281deg) brightness(104%) contrast(100%);
}

.qc-animal-card.active .qc-animal-svg svg { fill: var(--qc-active-text); }

.qc-animal-card.active .qc-animal-info h4,
.qc-animal-card.active .qc-animal-share,
.qc-animal-card.active .qc-animal-price,
.qc-animal-card.active .qc-animal-emoji,
.qc-animal-card:hover h4,
.qc-animal-card:hover p {
    color: var(--qc-active-text) !important;
}

/* =============================================
   SHARES + CURRENCY ROW
   ============================================= */
.qc-row {
    display: flex;
    gap: 20px;
    margin-top: 22px;
	flex-direction:column !important;
}

.qc-field {
    flex: 1;
}

.qc-label {
    display: block;
    margin-bottom: 6px;
    color: #4D5869;
   font-family: Sora;
    font-size: 14px;
    font-weight: 400;
}

/* ── Number input (shares) ── */
.qc-number-input {
    position: relative;
    width: 100%;
    border: 1px solid var(--qc-input-border);
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--qc-radius);
    overflow: hidden;
}

.qc-number-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--qc-font);
    padding: 11px 40px 11px 14px;
    background: transparent;
    color: #333;
}

/* hide browser spinners */
.qc-number-input input::-webkit-outer-spin-button,
.qc-number-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qc-number-input input[type=number] { -moz-appearance: textfield; }

/* ── Up / Down arrow buttons ── */
.qc-arrows {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 30px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}
#qgwp-qty,#qgwp-price-display {
	border: 1px solid #e0e0e0;
}
.qc-up, .qc-down {
    flex: 1;
    border: none !important;
    background: #f5f5f5 !important;
    cursor: pointer;
    font-size: 9px;
    color: var(--qc-arrow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: background 0.15s;
    line-height: 1;
	border-radius:0px !important;
}

.qc-up:hover, .qc-down:hover { background: #ececec; }

/* =============================================
   PRICING DISPLAY
   ============================================= */
.qc-pricing {
    margin-top: 18px;
}

.qc-price-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 18px;
   font-family: Sora;
    border: 1px solid var(--qc-input-border);
    color: #333;
    background: #fff;
    border-radius: var(--qc-radius);
    outline: none;
    cursor: default;
}

/* =============================================
   DONATE BUTTON
   ============================================= */
.qc-donate-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    background: var(--qc-btn-bg);
    color: var(--qc-btn-text);
    border: none;
    font-size: 17px;
    font-weight: 700;
   font-family: Sora;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: var(--qc-radius);
    transition: background 0.2s, transform 0.15s;
}

.qc-donate-btn:hover:not(:disabled) {
    background: var(--qc-btn-hover);
    transform: translateY(-1px);
}

.qc-donate-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.qc-error {
    color: #cc0000;
    font-size: 13px;
    margin: 8px 0 0;
    text-align: center;
}

/* =============================================
   DONATION PAGE – loader spinner
   ============================================= */
.qgwp-spinner-ring {
    width: 48px; height: 48px;
    border: 5px solid #ddd;
    border-top-color: var(--qc-primary);
    border-radius: 50%;
    animation: qgwp-spin 0.9s linear infinite;
    margin: 0 auto;
}
@keyframes qgwp-spin { to { transform: rotate(360deg); } }

#qgwp-summary {
    max-width: 660px;
    margin: 0 auto 20px;
    padding: 12px 18px;
    background: #f0faf6;
    border: 1px solid #c3e9db;
    color: var(--qc-primary);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    
}

/* =============================================
   PROGRESS BAR – 5 steps
   ============================================= */
.progress-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 660px;
    margin: 0 auto 48px;
    box-sizing: border-box;
}

.progress-container::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(100% / 10);
    right: calc(100% / 10);
    height: 3px;
    background: #dcdcdc;
    border-radius: 2px;
    z-index: 0;
}

#progress-fill {
    position: absolute;
    top: 20px;
    left: calc(100% / 10);
    right: calc(100% / 10);
    height: 3px;
    width: 0%;
    background: var(--qc-primary);
    border-radius: 2px;
    z-index: 1;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    gap: 10px;
}

.circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 3px solid #dcdcdc;
    background: #fff;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.2s;
}

.circle.active {
    border-color: var(--qc-primary);
    background: var(--qc-primary);
    color: #fff;
    transform: scale(1.08);
}

.step.done .circle {
    border-color: var(--qc-primary);
    background: var(--qc-primary);
    color: transparent;
    font-size: 0;
    position: relative;
}

.step.done .circle::after {
    content: "";
    position: absolute;
    width: 12px; height: 7px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translate(1px, -2px);
}

.label {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    text-align: center;
    width: 100%;
    line-height: 1.4;
    word-break: break-word;
    transition: color 0.3s, font-weight 0.3s;
}

.step.active .label { color: #202020; font-weight: 600; }
.step.done   .label { color: var(--qc-primary); font-weight: 500; }

/* =============================================
   Price Note
   ============================================= */
.qc-note {
    font-size: 11px;
    line-height: 1 !important;
    padding: 0;
    margin: 0;
    color: #d01c00;
    font-weight: 500;
    position: absolute;
    margin-top: 5px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
    .qc-wrap { max-width: 100%; }
    .qc-header h2 { font-size: 18px; }

    /* On mobile slider always shows 2 cards */
    .qc-slider-track .qc-animal-card {
        flex: 0 0 calc((100% - 15px) / 2);
    }

    .qc-row { flex-direction: column; gap: 14px; }
}

@media (max-width: 420px) {
    .qc-animal-grid { flex-direction: column; }
    .qc-animal-card { flex: none; }

    /* Slider: 1 card visible */
    .qc-slider-track .qc-animal-card {
        flex: 0 0 100%;
    }

    /* Progress bar */
    .circle { width: 28px; height: 28px; font-size: 11px; border-width: 2.5px; }
    .progress-container::before, #progress-fill { top: 14px; height: 2px; }
    .label { display: none; }
    .step.done .circle::after { width: 9px; height: 6px; }
}
