/* --------------------------
   Wrapper & Layout
--------------------------- */
.edb-wrap {
    margin: 30px auto;
    color: #333;
}

/* --------------------------
   Progress Steps
--------------------------- */
.edb-progress {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.edb-step-ind {
    flex: 1;
    padding: 10px;
    background: #eaeaea;
    border-radius: 6px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.edb-step-ind.active {
    background: #0073aa;
    color: #fff;
}

/* --------------------------
   Card
--------------------------- */
.edb-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --------------------------
   Form Fields
--------------------------- */
.edb-wrap .edb-field {
    margin-bottom: 16px;
    font-size: 1rem;
}

.edb-wrap .edb-field label {
    display: block !important;
    margin-bottom: 6px;
}

.edb-wrap .edb-input {
    padding: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, background-color 0.2s;
}

.edb-wrap .edb-select {
    width: 100% !important;
}

.edb-wrap .edb-row .edb-field {
    display: flex;
    flex-direction: column;
}

.edb-wrap .edb-field .iti {
    display: block !important;
    width: 100% !important;
}

.edb-field .iti input {
    width: 100% !important;
    display: block !important;
}
/* Dropdown styling */
.edb-wrap .edb-input select,
.edb-wrap .edb-input option {
    font-size: 15px;
}

/* Error & Success states */
.edb-wrap .edb-input.error {
    border-color: #e74c3c !important;
    background: #fff5f5;
}

.edb-wrap .edb-input.success {
    border-color: #27ae60 !important;
    background: #f7fff8;
}

.edb-wrap .edb-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

/* --------------------------
   Form Rows (2 columns)
--------------------------- */
.edb-row {
    display: flex;
    gap: 16px;
}

.edb-half {
    flex: 1;
}

/* Mobile: stack fields */
@media (max-width: 600px) {
    .edb-row {
        flex-direction: column;
    }
}

/* --------------------------
   Buttons
--------------------------- */
.edb-wrap .edb-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.25s;
}

.edb-wrap .edb-btn:hover {
    background: #005f8a;
}

.edb-wrap .edb-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.edb-wrap .edb-right {
    float: right;
}

/* Back Button */
.edb-btn.edb-back {
    background: #fff !important;
    border: 1px solid #D5D7DA;
    color: #414651;
}

.edb-btn.edb-back:hover {
    background: #777 !important;
    color: #f4eded;
}

/* --------------------------
   Spinner
--------------------------- */
.edb-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: edb-spin 0.8s linear infinite;
}
#edb-spinner2{
    font-size: 1rem;
    font-weight: 600;
}
@keyframes edb-spin {
    to { transform: rotate(360deg); }
}



/* --------------------------
   Success Screen
--------------------------- */
#edb-success h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

#edb-success p {
    font-size: 16px;
    color: #444;
}

/* --------------------------
   intl-tel-input override
--------------------------- */
.iti {
    width: 100%;
}

.iti--allow-dropdown .iti__selected-flag {
    padding: 8px;
}

.iti__country-list {
    z-index: 9999;
}

/* FACE WRAPPER */
.edb-face-wrapper {
  display: flex;
  width: 100%;
  gap: 3%;
  box-sizing: border-box;
}

/* ---- Left Column ---- */
.edb-face-left {
    width: 32%;
    padding: 2%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.edb-face-left h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5vw;
    color: #1a1a1a;
}

/* ---- Instruction Items ---- */
.edb-instruction {
  display: flex;
    align-items: flex-start;
    margin-bottom: 1.8vw;
}

.edb-instruction-icon {
    font-size: 2vw;
    margin-right: 1vw;
    line-height: 1;
}

/* Text block */
.edb-instruction-text {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    padding-left: 10px;;
}

.edb-instruction-text-title {
    font-size: 1.25vw;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3vw;
}

.edb-instruction-text-desc {
    font-size: 0.95vw;
    color: #666;
    line-height: 1.4;
    max-width: 90%;
}

.edb-instruction h4 {
  margin: 0;
  font-size: 1.05rem;
}

.edb-instruction p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.edb-icn {
  font-size: 1.8rem;
  width: 10%;
}

/* ---- Right Column ---- */
.edb-face-right {
  width: 60%;
  text-align: center;
}

/* ---- Camera Preview ---- */
.edb-camera-box {
  width: 100%;
  height: 320px;
  background: #eaf3ff;
  border: 2px solid #d8e6ff;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3%;
  overflow: hidden;
}

#edb-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Buttons ---- */
.edb-btn-primary,
.edb-btn-secondary {
  width: 60%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  margin: 1.5% auto;
  display: block;
  cursor: pointer;
  border: none;
}

.edb-btn-primary {
  background: #0b63c5;
  color: #fff;
}

.edb-btn-primary:hover {
  background: #084f9c;
}

.edb-btn-secondary {
  background: #ddd;
  color: #222;
}

.edb-btn-secondary:hover {
  background: #cfcfcf;
}

/* Disabled button style */
.edb-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Spinner ---- */
#edb-video-spinner {
  margin-top: 10px;
  font-weight: bold;
  color: #0b63c5;
}

/* ---- Mobile View ---- */
@media (max-width: 900px) {
    .edb-face-left {
        width: 100%;
        padding: 4% 2%;
        text-align: left;
    }

    .edb-face-left h2 {
        font-size: 5vw;
    }

    .edb-instruction {
        margin-bottom: 4vw;
    }

    .edb-instruction-icon {
        font-size: 5vw;
        margin-right: 3vw;
    }

    .edb-instruction-text-title {
        font-size: 4vw;
    }

    .edb-instruction-text-desc {
        font-size: 3vw;
    }
}

@media (max-width: 480px) {
  .edb-camera-box {
    height: 220px;
  }
}

#edb-countdown-timer {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  z-index: 10;
}

.edb-camera-box {
  position: relative; /* IMPORTANT for countdown positioning */
}

.preview-image {
    width:100%;
    border-radius:8px;
    border:1px solid #e6eefb;
}

.edb-hidden {
    display: none;
}

.edb-confirm-block {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #f7f7f7;
    font-size: 1rem;
}

.edb-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.edb-checkbox input {
    margin-right: 10px;
    transform: scale(1.2);
    outline: none !important;
}

.edb-button-primary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Readonly field styling */
.edb-readonly {
    background: #f3f3f3 !important;
    color: #555 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
    opacity: 0.9;
}

.edb-text-sm {
    font-size: 0.9rem;
}
.edb-kyc-accept {
    color: #17aa54;
}
.edb-kyc-reject {
    color: #ae2727;
}
.edb-wrap .edb-success-hd {
    color: #0d507a;
    font-size: 1.5rem;
    line-height: 1.8;
    text-align: center;
}
.edb-wrap .edb-success-msg {
    font-size: 1rem;
    text-align: center;
}

.edb-wrap .iti__selected-dial-code {
  font-size: 14px !important;
  font-weight: 500;
}

/* ---------------- PHONE INPUT LAYOUT LOCK ---------------- */
.edb-phone-wrap {
  position: relative;
}

.edb-phone-wrap .iti {
  width: 100%;
}

.edb-phone-wrap input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
}

/* Flag area alignment */
.edb-phone-wrap .iti__flag-container,
.edb-phone-wrap .iti__selected-flag {
  height: 100%;
  display: flex;
  align-items: center;
}

.edb-phone-wrap .iti__selected-dial-code {
  font-size: 12px;   /* ✅ reduces phone code font */
}

/* ---------------- ERROR MESSAGE (DOES NOT SHIFT UI) ---------------- */
.edb-phone-wrap .edb-error {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -18px;
  font-size: 12px;
  color: #e63946;
  line-height: 1;
  white-space: normal;
}

/* ---------------- ERROR BORDER ---------------- */
.edb-input.error {
  border-color: #e63946 !important;
}

/* Prevent jump when error appears */
.edb-field {
  margin-bottom: 26px;
}

