/* Basic Form Styling */
.passeport-form-wrapper {
    max-width: 1060px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    position: relative; /* For loader overlay */
}

/* .passeport-form h3 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}
 */
.form-step {
    padding: 20px 0;  
}

#step-0{
    display: flex ;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}
#step-0 .form-group{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Form Group & Labels */
.form-group {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin-bottom: 20px;
    width: fit-content;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #000000;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"]{
    width: 100vw;
    max-width: 300px;
    height: 46pxs;
    padding: 12px 15px;
    border: 0.6px solid #000000;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group select {
    padding: 7px 10px;
    border:0.6px solid #000000; 
    border-radius: 5px;
    font-size: 1em;
    height: 46px;
    box-sizing: border-box;
    color: #000;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;

    /* Hide default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;

    /* Custom arrow using base64 SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;

}



.form-group.civilite select,
.form-group.pere-connu select,
.form-group.mere-connu select {
    width: 100vw; 
    max-width: 300px;
}
.form-group.adresse input[type="text"]{
    width: 100vw; 
    max-width: 502px;
}
.form-group.number-mobile input[type="tel"]{
    width: 100vw; 
    max-width: 300px;
    height: 46px !important;
    border-radius: 5px !important;
}
.form-group.address-complement input[type="text"],
.form-group.address-complement input[type="number"]
{
    width: 100vw; 
    max-width:324px;
    height: 46px !important;
    border-radius: 5px !important;
}
.form-group.francais select {
    width: 100vw; 
    max-width: 625px; 
}

.form-group.motif select {
    width: 100vw; 
    max-width: 400px; 
}

/* Warna abu-abu saat default belum dipilih */
.form-group select:invalid {
    color: #9e9e9e;
}

/* Opsi placeholder (value kosong) */
.form-group select option[value=""] {
    color: #9e9e9e;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #061F65;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Required indicator */
.form-group .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 5px;
}

/* Invalid feedback for validation */
.form-group .is-invalid {
    border-color: #dc3545 !important;
}

.form-group .invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: none; /* Hidden by default, shown by JS */
}

.form-group input.is-invalid + .invalid-feedback,
.form-group select.is-invalid + .invalid-feedback {
    display: block;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: inline-block;
    margin-right: 10px;
    text-align: center;
}

.btn.next-step,
.btn.submit-form {
    background-color: #007bff;
    color: #fff;
}

.btn.next-step:hover,
.btn.submit-form:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn.prev-step {
    background-color: #6c757d;
    color: #fff;
}

.btn.prev-step:hover {
    background-color: #545b62;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Step Progress Bar */
.step-en-cours {
    text-align: center;
    font-size: 32px;
    letter-spacing: calc(-4/100 * 32px);
    margin-bottom: 40px;
}
@media (max-width: 767px) {
    .step-en-cours {
        font-size: 20px;
        margin-bottom: 20px;
    }
}
.step-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1060px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    /* padding: 0 15px; */
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 220px;
    padding: 15px 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Active step styling */
.step-item.active {
    background-color: #EDF1FF;
    color: #061F65;
}

/* Completed step styling */
.step-item.completed {
    background-color: #ffffff;
    color: #061F65;
}

/* Inactive step styling */
.step-item.inactive {
    background-color: transparent;
    color: #9e9e9e;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
    transition: all 0.3s ease;
}

/* Active step circle */
.step-item.active .step-circle {

    border: 1px solid #061F65;
    color: #061F65;
}

/* Completed step circle */
.step-item.completed .step-circle {
    background-color: #061F65;
    color: white;
}

/* Inactive step circle */
.step-item.inactive .step-circle {
    background-color: transparent;
    border: 1px solid #9CA3AF;
    color: #9CA3AF;
}

.step-label {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

/* Checkmark icon styling */
.checkmark {
    width: 16px;
    height: 16px;
}

/* Connector lines between steps */
.connector {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 10px;
    transition: all 0.3s ease;
    display: none;
}

.connector.completed {
    background-color: #061F65;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .step-progress-container {
        flex-direction: row;
        justify-content: space-around;
        gap: 5px;
        margin: 15px auto;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .step-item {
        min-width: auto;
        width: auto;
        max-width: none;
        flex: 1;
        padding: 10px 5px;
        margin: 0;
    }
    
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .step-label {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.1;
        max-width: 80px;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .checkmark {
        width: 14px;
        height: 14px;
    }
    
    /* Hide connectors on mobile for cleaner look */
    .connector {
        display: none;
    }
    
    /* Adjust active step background for mobile */
    .step-item.active {
        background-color: #EDF1FF;
        border-radius: 6px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .step-progress-container {
        gap: 2px;
        padding: 0 5px;
    }
    
    .step-item {
        padding: 8px 3px;
    }
    
    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .step-label {
        font-size: 10px;
        max-width: 70px;
        line-height: 1.0;
    }
    
    .checkmark {
        width: 12px;
        height: 12px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .step-progress-container {
        margin-top: 10px;
        margin-left: 10px;
        margin-right: 10px;
      
    }
    
    .step-item {
        padding: 6px 2px;
    }
    
    .step-circle {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .step-label {
        font-size: 9px;
        max-width: 60px;
    }
}


/* Recap Section */
.recap-content {
    margin: 20px 0;
}

.recap-section {
    border: 1px solid #000000;
    border-radius: 4px;
    margin-bottom: 20px;
}

.recap-section-header {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 24px;
    color: #000000;
}
.recap-sub-section-header{
    font-weight: 600;
    font-size: 24px;
    color: #000000;
    margin-top: -9px !important;
    margin-bottom: 14px !important;
}

.recap-section-content {
    padding: 15px;
}

.recap-field {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.recap-field:last-child {
    margin-bottom: 0;
}

.recap-field-label {
    font-weight: 600;
    color: #000000;
    display: inline-block;
    min-width: 140px;
}

.recap-field-value {
    color: #000000;
}
.recap-sub-section {
    margin-top: 20px; 
    padding-top: 10px; 
}

.recap-section-content > .recap-sub-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    color: #000000;
}
.form-terms {
    display: flex;
    flex-direction: row;
    margin: 25px 0;
    padding: 15px;
    background: #EBEBEB;
    border-radius: 8px;
}

.form-terms input[type="checkbox"] {
    margin-right: 8px;
}

.form-terms label {
    font-size: 14px;
    line-height: 1.5;
}

/* Loader Overlay */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px; 
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Submit button loading state */
.submit-form.loading {
    cursor: not-allowed;
    background-color: #0056b3; 
    opacity: 0.8;
}



/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 5px;
  }
  
  .custom-select {
    position: relative;
    display: block;
    width: 350px;
  }
  
  .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 2px solid #061F65;
    border-radius: 8px;
    background: white;
    width: 350px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 42px;
  }
  
  .select-trigger:hover {
    border-color: #2563eb;
  }
  
  .select-trigger.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .select-placeholder {
    font-size: 1rem;
    color: #9ca3af;
  }
  
  .select-placeholder.has-value {
    color: #1a1a1a;
  }
  
  .select-arrow {
    color: #061f65;
    transition: transform 0.2s ease;
    display: flex;
    margin-left: 10px;
    align-items: center;
  }
  
  .select-trigger.active .select-arrow {
    transform: rotate(180deg);
  }
  
  .select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    max-width: 350px;
    width: 100%;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
    overflow: hidden;
  }
  
  .custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .select-option {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 2px solid #f3f4f6;
  }
  
  .select-option:last-child {
    border-bottom: none;
  }
  
  .select-option:hover {
    background-color: #f8fafc;
  }
  
  .select-option.selected {
    background-color: #eff6ff;
  }
  
  /* Updated radio button with checkmark */
  .option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .select-option.selected .option-radio {
    border-color: #000000;
    background-color: transparent; 
  }
  
  /* Checkmark icon */
  .radio-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; 
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Checkmark SVG styling */
  .radio-inner svg {
    width: 16px;
    height: 16px;
    color: #d1d5db; 
    transition: color 0.2s ease;
  }
  
  .select-option.selected .radio-inner svg {
    color: #000000; 
  }
  
  .option-text {
    font-size: 1rem;
    color: #374151;
  }
  
  .select-option.selected .option-text {
    color: #1a1a1a;
    font-weight: 500;
  }
  
  /* Invalid state */
  .custom-select-wrapper.is-invalid .select-trigger {
    border-color: #ef4444;
  }
  
  .invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }
  
  .custom-select-wrapper.is-invalid .invalid-feedback {
    display: block;
  }
  
  /* Responsive adjustments */
@media (max-width: 768px) {
    .passeport-form-wrapper {
        margin: 15px;
        padding: 10px;
    }

    .form-step{
        display: flex;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .form-label{
        font-size: 15px;
        font-weight: 500;
    }
    .custom-select {
        display: flex;
        justify-content: center;
        align-items: center;        
        width: 320px;
      }
    .select-trigger {
        padding: 7.5px 15px;
        width: 320px;
        min-height: 30px;
      }

    .form-group.civilite select,
    .form-group.pere-connu select,
    .form-group.mere-connu select {
        width: 100vw; 
        max-width: 320px;
        min-height: 45px;
        font-size: 14px !important;
    }
    .form-group.civilite{
        margin-top: 25px ;
    }
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"]{
        width: 100vw; 
        max-width: 320px;
        min-height: 45px;
        font-size: 14px !important;
    }
    .form-group select,
    .form-group.francais select,
    .form-group.motif select {
        width: 100vw; 
        max-width: 320px;
        min-height: 45px;
        font-size: 14px !important;
    }

    .form-group.adresse input[type="text"]{
        width: 100vw; 
        max-width: 320px;
        min-height: 45px;
        font-size: 14px !important;
    }
    .form-group.number-mobile input[type="tel"]{
        width: 100vw; 
        max-width: 320px;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: 30px !important;
        font-size: 14px !important;
    }
    .form-group.adresse input[type="text"]{
        width: 100vw; 
        max-width: 320px;
        min-height: 45px !important;
        font-size: 14px !important;
      
    }

    .group-adresse{
        margin-bottom: -20px !important;
    }


    .form-group.address-complement input[type="number"]
    {
        width: 100vw; 
        max-width: 320px;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: 30px !important;
        font-size: 14px !important;
    }

    .form-terms label {
        font-size: 12px;
        line-height: 1.5;
    }
    .recap-section-header {
        font-size: 18px;
        color: #000000;
    }
    .recap-sub-section-header{
        font-size: 18px;
        color: #000000;
        margin-top: -5px !important;
        margin-bottom: 10px !important;
    }
    #place_order{
        margin-top: 15px !important;
    }
    .btn-hero .cta-button{
        display: block !important;
    }

}

.wp-block-post-title {
    display: none;
}





/* checkout page */
.woocommerce-checkout .wp-block-site-title {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500
}
.woocommerce-checkout #order_review #payment {
    width: 70%;
}
@media (max-width: 767px) {
    .woocommerce-checkout {
        padding: 10px;
    }
    .woocommerce-checkout #order_review #payment {
        width: 100%;
    }
}


#place_order {
  background-color: #0073e6;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#place_order:hover {
  background-color: #005bb5;
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 91, 181, 0.5);
}

#place_order:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.5);
}




