.thanksmodal-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thanksmodal {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    margin: auto;
    padding: 2rem;
    transform: translateY(0); /* Removed the 30px translation */
    opacity: 1; /* Ensure visibility */
    animation: slideUp 0.7s ease forwards;
}

.thanksmodal-body {
    padding: 30px;
}

.thanksmodal-header {
    display: flex;
    background: linear-gradient(135deg, #28a745, #5cd675);
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Space between SVG and h2 */
    padding: 1rem;
    position: relative;
}

.thanksmodal-header h2 {
    flex-grow: 1;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.journey-step {
    margin-bottom: 15px;
    padding: 0 5px;
    opacity: 0;
    transform: translateY(15px);
    display: none;
}

.journey-step.active {
    display: block;
}

.step-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.2s;
}

.content-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-icon {
    min-width: 60px;
    height: 60px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.step-icon svg {
    width: 35px;
    height: 35px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    opacity: 0;
    transform: scale(0.5);
    animation: iconGrow 0.8s ease forwards;
}

.step-text {
    flex-grow: 1;
    line-height: 1.5;
}

.cta-button {
    background: linear-gradient(135deg, #218838, #28a745);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    margin: 25px auto 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 2.8s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Email Form Styling */
.thanksmodal-form {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.thanksmodal-form.active {
    display: block;
}

.thanksmodal-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.highlight {
    color: #28a745;
    font-weight: 600;
}

.thanksmodal-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.thanksmodal-form input[type="email"]:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.thanksmodal-form button[type="submit"] {
    background: linear-gradient(135deg, #218838, #28a745);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thanksmodal-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #1e7e34, #218838);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.25);
}

.journey-progress {
    height: 5px;
    background-color: #e0e0e0;
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #218838, #28a745);
    transition: width 0.3s ease;
}

.step-text {
    opacity: 0;
    transform: translateX(15px);
    animation: fadeSlideIn 0.8s ease forwards 0.3s;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes iconGrow {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.motorcycle-icon {
    position: absolute;
    top: 15px;
    left: -50px;
    width: 40px;
    height: 40px;
    animation: rideIn 2s ease forwards 0.5s;
}

@keyframes rideIn {
    from {
        left: -50px;
    }
    to {
        left: 20px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .thanksmodal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .step-image {
        max-width: 100px;
    }

    .thanksmodal-body {
        padding: 20px;
    }
}