/* ===== GET STARTED PAGE STYLES ===== */

/* Progress bar */
.get-started-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(255,255,255,0.6);
    z-index: 2000;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.get-started-progress-bar-bg {
    width: 90vw;
    height: 13px;
    background: #ececec;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-right: 16px;
}
.get-started-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #42a5f5, #2575fc 70%);
    width: 0%;
    transition: width 0.5s cubic-bezier(.7,0,.25,1);
    border-radius: 16px;
}
.get-started-progress-percent {
    min-width: 48px;
    color: #2575fc;
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Get Started Page Base */
.get-started-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 100px 0 20px 0 !important;
}
.get-started-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}
.get-started-hero .container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 2;
}
.get-started-card {
    padding: 28px 22px 22px 22px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(40,70,160,0.14);
    width: 100%;
    margin: 35px auto 0 auto;
    position: relative;
    z-index: 2;
    transition: all 0.45s cubic-bezier(0.65,0,0.35,1);
    transform-origin: center;
    opacity: 1;
    max-width: 440px;
}
.get-started-card.hidden {display: none; opacity: 0;}
.get-started-card.active {
    display: block;
    opacity: 1;
    animation: fadeInScale 0.45s cubic-bezier(.7,0,.25,1);
}
@keyframes fadeInScale {
    0% {opacity: 0; transform: translateY(32px) scale(0.96);}
    100% {opacity: 1; transform: translateY(0) scale(1);}
}
/* Step titles and text */
.get-started-card h2 {
    font-size: 1.09rem;
    color: #212539;
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-weight: 600;
    margin-bottom: 19px;
    letter-spacing: -0.008em;
}
.get-started-card > p.final-step-text {
    color: #2575fc;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: left;
    margin-top: -12px;
}

/* Options buttons for initial choices */
.get-started-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.get-started-options .btn {
    font-size: 1.13rem;
    padding: 15px 0;
    border-radius: 22px;
    width: 100%;
}
.get-started-options .btn i { margin-right: 10px;}
/* Invert btn classes for the two choices in step1 */
#get-started-card #modernizeBtn {
    background-color: #fff;
    color: #42a5f5;
    border: 2px solid #42a5f5;
}
#get-started-card #modernizeBtn:hover {
    background: #42a5f5;
    color: #fff;
}
/* Inputs */
.form-group {
    margin-bottom: 14px;
}
/* Input + label styles in all steps */
.form-group label,
.language-label {
    color: #212539;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 7px;
    display: block;
    text-align: left;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 2px solid #e8e9f3;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border 0.22s;
    background: #fcfcfd;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #42a5f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66,165,245,0.14);
}
/* Char counters */
.char-counter {
    text-align: right;
    font-size: 0.86rem;
    color: #7a868e;
    margin-top: 2px;
}
/* Form buttons (Next, Back) */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
}
.btn.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}
/* Carousel for layouts & color palettes */
.carousel-container {
    position: relative;
    margin: 13px 0 18px 0;
    min-height: 256px;
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-item {
    opacity: 0;
    pointer-events: none;
    transform: translate(44px, -50%) scale(0.96);
    position: absolute;
    top: 50%;
    left: 0; 
    width: 100%; 
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.48s cubic-bezier(.68, 0, .32, 1), opacity 0.48s cubic-bezier(.68, 0, .32, 1);
    z-index: 0;
}
.carousel-item.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(0, -50%) scale(1.0);
    z-index: 1;
}
.carousel-item.prev {
    opacity: 0;
    pointer-events: none;
    transform: translate(-44px, -50%) scale(0.96);
}
/* Layout preview SVGs */
.layout-preview {
    width: 99%;
    max-width: 350px;
    height: 170px;
    margin-bottom: 13px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(37,117,252,0.07);
    background: #fcfcfd;
}
/* Carousel navs */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37,117,252,0.82);
    color: #fff;
    border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.22s;
}
.carousel-nav:active, .carousel-nav:focus { background: #212539; }
/* Default positions */
.carousel-nav.prev { left: -22px; }
.carousel-nav.next { right: -22px; }
/* Palettes */
.palette-preview {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}
.palette-preview span {
    width: 48px; height:48px; 
    border-radius: 50%; 
    border: 2px solid #fff;
    box-shadow: 0 1px 4px #eee;
}
.carousel-item-wrapper h3 {
    color: #444;
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 500;
}
.palette-name {
    color: #444;
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}
/* Custom Palette */
.custom-palette { 
    margin: 13px 0 0 0; 
    text-align: center; 
}
.color-pickers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top:12px;
}
.color-pickers.hidden { 
    display: none;
}
.color-picker label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.93rem;
}
.color-picker input[type="color"] {
    width: 100%; height: 38px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* Step 5 Language selectors */
.language-label {
    color: #444 !important; 
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    margin-top: 5px;
}
.form-select {
    color: #222;
    font-size: 1rem;
}
/* Step 6 Business info (form fields closer) */
#step6 .form-group {
    margin-bottom: 10px !important;
}
#step6 .form-group label,
#step6 .language-label,
#step6 label {
    color: #212539;
    text-align: left;
    margin-bottom: 7px;
}
#step6 .form-input,
#step6 .form-textarea {
    background: #f8fafe;
    font-size: 1rem;
}
.business-hours { position: relative; }
.hours-detailed {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin-top: 8px;
}
.hours-detailed.hidden {display: none;}
.day-hours label { 
    display: block; margin-bottom: 4px;
    font-size: 0.93rem;
}
/* Website generation animation */
.generation-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 12px 0;
}
.generation-svg {
    width: 130px;
    height: 130px;
}
.circle-path {
    fill: none;
    stroke: #42a5f5;
    stroke-width: 2;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform-origin: center;
    animation: circleAnimation 3s infinite alternate ease-in-out;
}
.circle-path:nth-child(1) { animation-delay: 0s;}
.circle-path:nth-child(2) { animation-delay: .65s;}
.circle-path:nth-child(3) { animation-delay: 1.2s;}
.website-icon {fill: #42a5f5;}
.website-icon-line {stroke-dasharray: 20; stroke-dashoffset: 20; animation: grow 2.7s infinite alternate;}
@keyframes circleAnimation {
    0% { stroke-dashoffset: 314; transform: rotate(-8deg);}
    100% { stroke-dashoffset: 0; transform: rotate(355deg);}
}
@keyframes grow {
    0% {stroke-dashoffset: 20;}
    90% {stroke-dashoffset: 0;}
    100% {stroke-dashoffset: 0;}
}
.extract-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin: 25px 0 18px 0;
}
.extract-svg {
    width: 70px;
    height: 70px;
    display: block;
    margin: 0 auto 16px auto;
}
.extract-logs {
    background: #f8fafe;
    color: #2575fc;
    border-radius: 10px;
    min-height: 92px;
    width: 100%;
    max-width: 360px;
    padding: 13px 19px 13px 17px;
    box-shadow: 0 1px 8px rgba(37,117,252,0.06);
    font-size: 1rem;
    animation: fadeIn .8s;
    font-family: 'Inter', sans-serif;
    text-align: left;
    overflow-y: auto;
}
.extract-logs p {
    margin: 0 0 7px 0;
    line-height: 1.3;
    color: #2575fc;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    opacity: 1;
}
.extract-logs .error { color: #e53935; }
.extract-logs .ok { color: #2e7d32; font-weight: 500;}
.extract-logs .loading { color: #888;}
/* Generation messages */
.generation-messages {
    text-align: center;
    min-height: 24px;
}
.generation-message {
    display: none;
    animation: fadeIn 0.5s;
}
.generation-message.active {display: block;}
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
/* Success step */
.success-icon {
    font-size: 4.5rem;
    color: #42a5f5;
    margin-bottom: 15px;
    animation: successPulse 2s infinite alternate;
}
@keyframes successPulse {
    0% {transform: scale(.96); opacity:.82;}
    100% {transform: scale(1.12); opacity:1;}
}
.success-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}
.success-buttons .btn {
    padding: 0.8rem 1.8rem;
    min-width: 140px;
}

/* Mobile Responsiveness */
@media (max-width: 580px) {
  .carousel-nav {
    width: 33px;
    height: 33px;
    font-size: 1rem;
  }
  .carousel-nav.prev {
    left:  -7px !important;
    right: auto !important;
  }
  .carousel-nav.next {
    right: -7px !important;
    left:  auto !important;
  }
  
  /* Fix for overlapping buttons */
  .form-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  .form-buttons .btn {
    width: 48%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9rem;
  }
}


@media (max-width: 360px) {
    .get-started-card {padding:10px 2vw;}
    .palette-preview span { width:24px; height:24px;}
    .carousel-nav {width: 26px; height: 26px;}
    
    /* Additional fixes for very small screens */
    .form-buttons .btn {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
}

/* ─── CORREÇÕES PARA PROPORÇÕES E LEGENDAS ─── */
.carousel-item img.layout-preview {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.carousel-item-wrapper .layout-name {
    display: block !important;
    margin-top: 12px !important;
    color: #212539 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.carousel-item {
    height: auto !important;
}