
/* ==============================================
   FORM PAGE STRUCTURE
   ============================================== */

.form-page {
    height: 100%;
    width: 100%;
    padding: 0px;
    scroll-snap-align: start;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.page-wrapper {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    display: flex;
    gap: 20px;
    padding: 0px;
    box-sizing: border-box;
}

.form-container {
    flex: 1.1;
     height: 98%;
 
    margin: 0;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */    
}
.form-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.right-panel {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ==============================================
   TYPOGRAPHY & FORM ELEMENTS
   ============================================== */

.form-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #179C41;
    font-family: "IBM Plex Sans", sans-serif;
}

.form-field {
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.form-field:last-of-type {
    border-bottom: none;
}

.field-title {
    font-size: 16px;
    font-weight: 500;
    font-weight: bold;
    color: #179C41;
    margin: 0 0 8px 0;
}

.field-description {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.input-field {
    width: 300px;
    padding: 16px 16px;
    border: 1px solid rgb(200,200,200);
    border-radius: 24px;
    font-size: 14px;
    background-color: white;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.input-field:focus {
    border-color: #00B53F;
}

.wide-input {
    width: 450px;
    max-width: 98%;
}

.textarea-field {
    width: 100%;
    max-width: 600px;
    padding: 16px;
    border: 1px solid rgb(200,200,200);
    border-radius: 32px;
    font-size: 14px;
    background-color: white;
    resize: vertical;
    min-height: 240px;
    font-family: "IBM Plex Sans", sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.textarea-field:focus {
    border-color: #00B53F;
}

/* ==============================================
   PHOTO UPLOAD
   ============================================== */

.photo-upload-area {
    position: relative;
}

.photo-upload-box {
    width: 120px;
    height: 120px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: white;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.photo-upload-box:hover {
    border-color: #00B53F;
}

.upload-icon {
    font-size: 32px;
    color: #999;
    font-weight: 300;
    user-select: none;
}

.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.upload-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
}

/* ==============================================
   TAGS
   ============================================== */

.tags-container {
    display: flex;
    gap: 8px;
    margin: 0 0 16px 0;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid gray;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    background: white;
    color: #1a1a1a;
    font-family: "IBM Plex Sans", sans-serif;
    transition: background-color 0.2s ease;
}

.tag.selected {
    background: #b0f0c0;
}

/* ==============================================
   TOOLTIP
   ============================================== */

.tooltip-wrapper {
    position: relative;
    margin: 10px 0;
}

.tooltip-trigger {
    font-size: 14px;
    color: #3ACF69;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
}

.tooltip-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F8F8F8;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    max-width: 400px;
    width: 90vw;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.tooltip-wrapper.active .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.tooltip-section {
    margin-bottom: 10px;
}

.tooltip-section:last-child {
    margin-bottom: 0;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: black;
    font-family: "IBM Plex Sans", sans-serif;
}

.tooltip-text {
    font-size: 14px;
    line-height: 1.4;
    color: black;
    font-family: "IBM Plex Sans", sans-serif;
}

/* ==============================================
   BOOK LENGTH OPTIONS AND BOOK TYPE OPTION
   ============================================== */

.length-options, .input-type-options {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 700px;
}

.length-option, .input-type-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.2s ease;
}

.length-option:hover, .input-type-option:hover {
    border-color: #00B53F;
}

.length-option.selected, .input-type-option.selected {
    border-color: #28a745;
    border-width: 3px;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: "IBM Plex Sans", sans-serif;
}

.option-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: "IBM Plex Sans", sans-serif;
}

.option-price {
    font-size: 18px;
    font-weight: 500;
    color: gray;
    font-family: "IBM Plex Sans", sans-serif;
}


/* ==============================================
   ART STYLE GRID
   ============================================== */

.style-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.style-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.style-option {
    width: 230px;
    height: auto;
    border: 1px solid #f4f4f4;
    border-radius: 12px;
    cursor: pointer;
    background: #fefefe;
    transition: border-color 0.2s ease;
}

.style-option:hover {
    border-color: #00B53F;
}

.style-option.selected {
    border-color: #28a745;
    border-width: 3px;
}

.style-label {
    margin-top: 12px;
    font-size: 16px;
    color: #333;
    text-align: center;
    font-family: "IBM Plex Sans", sans-serif;
}

/* ==============================================
   NAVIGATION CONTROLS
   ============================================== */

.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.btn-next, .btn-back {
    padding: 16px 32px;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-next {
    background-color: #3ACF69;
    color: black;
    border: 1px solid rgba(0.2, 0.2, 0.2, 0.1);
    box-shadow: 3px 3px 3px rgba(0.2, 0.2, 0.2, 0.1);
}

.btn-next:hover:not(.disabled) {
    background-color: #1AAA48;
}

.btn-next.disabled {
    background-color: #D5E2D9;
    cursor: not-allowed;
}

.btn-back {
    background-color: transparent;
    color: #666;
    font-weight: 400;
}

.btn-back:hover {
    background-color: #f5f5f5;
}

/* ==============================================
   CREATION PAGE
   ============================================== */

.creation-area {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.creation-summary {
    font-size: 16px;
    margin: 10px 0;
    max-width: 80%;
}

.features-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 15px 0 8px 0;
}

.features-list {
    margin: 10px 0;
}

.btn-change-story {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 24px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    margin: 15px 0;
    align-self: flex-start;
}

.character-preview {
    margin: 10px 0;
}

.character-image {
    width: 40%;
    height: auto;
    max-width: 300px;
    margin: 0;
}

.btn-payment {
    padding: 20px 20px;
    background-color: #179C41;
    color: black;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-self: flex-start;
    max-width: 400px;
}

.btn-payment:hover:not(.disabled) {
    background-color: #1AAA48;
}

.btn-payment.disabled {
    background-color: #D5E2D9;
    cursor: not-allowed;
}

.loading-gradient {
    background: linear-gradient(90deg, #3ACF69 25%, #179C41 50%, #3ACF69 75%);
    background-size: 200% 100%;
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.hidden{
    display: none;
}
/* ==============================================
   TESTIMONIALS
   ============================================== */

.testimonials-section {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;  
}

.testimonials-title {
    font-size: 24px;
    font-weight: 600;
    margin: 30px auto;
    display: block;
    text-align: center;
}

.testimonials-section::-webkit-scrollbar {
    display: none;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-text {
    margin-bottom: 20px;
    font-size: 18px;
    width: 100%;
    text-align: center;
    max-width: 50%;
    font-style: italic;
    font-weight: 600;
}

.testimonial-cover {
    position: relative;
    width: 300px;
}

.cover-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.right-image{
    object-fit:contain;
    width: 90%;
    margin: auto;
    display: block;
    transition: transform 0.3s ease;
}
.right-image:hover, .cover-image:hover{
    transform: scale(0.98); 
}
.profile-image {
    width: 140px;
    height: auto;
    border-radius: 20px;
    border: 4px solid white;
    position: absolute;
    bottom: -60px;
    right: -100px;
    background: white;
    object-fit: cover;
}





@media (max-width: 768px) {
    
    .page-wrapper {
        display: block;
        max-width: 100%;
        gap: 0;
        padding: 0;
    }
    .form-container {
        width: 96%;
        margin: 0 auto 20px auto;
        flex: none;
        display: block;
        padding: 20px;
    }

    .right-panel {
        display: none;
    }
              
    .testimonials-section {
        padding: 10px;
        order: -1;
    }
    
    .testimonials-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .testimonials-grid {
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 16px;
    }
    
    .testimonial-item {
        width: 300px;
        flex-shrink: 0;
    }
    
    .testimonial-cover {
        width: 240px;
    }
    .testimonial-text {
        width: 96%;
        max-width: 96%;
        font-weight: 500;
    }    
    .profile-image {
        width: 85px;
        height: 85px;
        bottom: -10px;
        right: -10px;
    }
    .right-image{
        display: none;
    }
   .length-options, .input-type-options {
        flex-direction: column;
    }    
    /* Page 5 mobile specific */
    #page-5 .page-wrapper {
        flex-direction: column-reverse;
    }
    
    #page-5 .right-panel {
        order: 0;
        margin-bottom: 20px;
    }
    
    #page-5 .form-container {
        order: 1;
    }
    .creation-summary {
        max-width: 96%;
    }

}






