@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    padding: 0;
    margin: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background: #FFF200;
     min-height: 100vh; 
     display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    padding: 0;
    margin: 0;
}
.main-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 130px;
}

/* header start */
header {
    padding: 8px 0;
    position: fixed;
    top: 0;
    background: #FFF200;
    margin: 0;
    z-index: 99;
}
/* Fixed Header Style */
/* .fixed {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  animation: slideDown 0.3s ease;
  z-index: 99999999999999999;
} */
/* @keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
} */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.logo-area img{
    width: 100px;
}

.logo {
    width: 100px;
    margin: 0 !important;
    height: 84px;
    object-fit: contain;
    background: #fff;
    padding: 0 10px;
    border-radius: 10px;
}
.adi-logo.logo {
    padding: 0;
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 745px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.form-header {
    background: #000;
    padding: 30px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-header h2 {
    margin: 0;
    font-weight: 600;
}

.progress-container {
    padding: 30px 30px 0;
    display: none;
}

.progress-bar-custom {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}

.progress-bar-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: #fff200;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.3s ease;
    width: var(--progress-width, 0%);
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: #fff200;
    color: #000;
    background: white;
    transform: scale(1.1);
}

.progress-step.completed {
    border-color: #fff200;
    background: #fff200;
    color: white;
}

.step-label {
    position: absolute;
    top: 60px;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.form-content {
    padding: 30px;
    min-height: 400px;
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.step-subtitle {
    color: #666;
    margin-bottom: 30px;
    text-align: center ;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    padding: 9px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #fff200;
    box-shadow: none;
}

.image-selection {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
    grid-template-columns: repeat(5, 1fr);
}

.image-option {
    width: 120px;
    height: 120px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    position: relative;
    overflow: hidden;
}

.image-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-option.selected {
    border-color: #fff200;
    background: #fff200;
}

.image-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    background: #000000;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

span#displayName {
    font-size: 20px;
    font-weight: bold;
    position: relative;
    top: -8px;
}

.template-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    grid-template-columns: repeat(2, 1fr);
}

.template-card {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 335px;
}
.template-card img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.template-card.selected {
    border-color: #fff200;
    background: #fff200;
    color: #000 !important;
}
.template-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000000;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.template-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff200;
}

.template-card.selected i {
    color: #000;
}

.template-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.btn-custom {
    padding: 12px 30px;
    border-radius: 44px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: #f0f0f0;
    color: #333;
}

.btn-prev:hover {
    background: #e0e0e0;
    transform: translateX(-5px);
}

.btn-next,
.btn-submit {
    background: #fff200;
    color: #000;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: scale(1.05);
}

.voice-recorder-container {
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.recorder-display {
    margin-bottom: 0px;
}

.audio-wave {
    margin-bottom: 8px;
}

.recording-status {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0px;
}

.recording-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0;
}

.recorder-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-record,
.btn-stop,
.btn-play {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-record {
    background: #fff200;
    color: #000000;
}

.btn-record:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-stop {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-play {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(81, 207, 102, 0.4);
}

.action-buttons {
    display: none;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-preview,
.btn-download {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-preview {
    background: #fff200;
    color: #000;
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-download {
    background: #20c997;
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.4);
}

/* final template */
.final-template {
    width: 392px;
    margin: 0 auto 30px;
}
.final-template img {
    border-radius: 15px;
    height: auto;
    margin: 0 auto;
    display: table;
    width: 100%;
}
.final-template p {
    position: absolute;
    top: 65%;
    width: 64%;
    /* color: #fff; */
    font-size: 15px;
    text-align: center;
    transform: translateX(-50%);
    left: 50%;
}
.letetr-big{
    font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 100vh;
    position: relative;
    animation: slideUp 0.3s;
}
.modal-body video {
    height: 400px;
    margin: 0 auto;
    display: table;
}
#action-display {
    margin: 0 auto;
    width: 100%;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #FFF200 0%, #7f7907 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.preview-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preview-label {
    font-weight: 700;
    color: #b6ac00;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.preview-value {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.preview-template {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    color: #b7ae06;
    font-weight: 600;
}

.preview-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #333;
}

.file-upload-wrapper {
    border: 3px dashed #e0e0e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: #fff200;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-wrapper i {
    font-size: 3rem;
    color: #fff200;
    margin-bottom: 15px;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.success-message {
    text-align: center;
    padding: 40px 0;
}

.success-message i {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}
.btn-custom i {
    font-size: 16px;
    margin-bottom: 0;
}

/* .form-buttons {
    position: fixed;
    bottom: 0;
    background: #fff;
    left: 50%;
    width: 745px;
    transform: translateX(-50%);
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
} */

.record_voice_second {
    margin-bottom: 6px !important;
}

@media (max-width: 576px) {

span#displayName {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    top: -16px;
    margin-bottom: 27px;
    line-height: 20px;
}
 .final-template {
    margin: 0 auto 0px !important;
}   
    .form-header {
    padding: 15px;
}
.modal-content {
    max-width: 95%;
}
.modal-header h3 {
    font-size: 1rem;
}
.modal-body video {
    width: 100%;
}

.action-buttons-cropmodal {
    margin-top: 15px;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}
#rotateLeftBtn, #rotateRightBtn {
    background: #555;
    margin-right: 0px !important;
}
.logo {
    width: 60px;
    height: 48px;
    padding: 0 7px;
}
.form-header h2 {
    font-size: 20px;
}
.form-content {
    padding: 18px;
}
.form-container {
    max-width: 100%;
    width: 92%;
    margin-bottom: 65px;
}
.step-title {
    text-align: center;
}
.step-subtitle {
    text-align: center;
    font-size: 14px;
}
.file-upload-wrapper {
    padding: 20px;
}
.file-upload-wrapper small {
    font-size: 12px;
}
.file-upload-wrapper p {
    font-size: 16px;
}
.file-upload-wrapper p span{
    word-break: break-all;
}
.image-selection {
    grid-template-columns: repeat(2, 1fr);
}
.image-option {
    width: 100%;
}
.btn-custom {
    padding: 7px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 44px;
    transform: translateX(0) !important;
    box-shadow: none !important;
}
.template-grid {
    grid-template-columns: repeat(1, 1fr);
}
.final-template {
    width: 100%;
}
.final-template img {
    height: auto;
    width: 100%;
    object-fit: contain;
}
.final-template p {
    font-size: 11px;
    width: 100%;
}
.voice-recorder-container {
    flex-direction: column;
}
.btn-record, .btn-stop, .btn-play {
    padding: 15px 25px;
    font-size: 13px;
}
.image-option:hover {
    transform: translateY(0px);
}
.recording-status {
    font-size: 1rem;
}
.recorder-controls {
    margin-top: 10px;
}
.form-buttons {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    background: #fff;
    padding: 10px;
}

}