﻿body {
    background-color: #f8f9fa;
}

/* =step navigation
**************/
.steps-container {
    position: relative;
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 20px 20px; /* Increased top padding to prevent cutoff */
    overflow: visible;
}

.steps-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.step-item-old {
    flex: 0 0 auto;
    position: relative;
    margin: 0 15px;
    width: 280px;
    padding-left: 10px;
    overflow: visible;
}

.step-item-v2 {
    flex: 0 0 auto;
    position: relative;
    margin: 0 8px;
    width: 260px;
    padding-left: 10px;
    overflow: visible;
}

.step-item {
    flex: 0 0 auto;
    position: relative;
    margin: 0 15px;
    width: 290px;
    padding-left: 5px;
    overflow: visible;
}


.step-svg {
    width: 100%;
    height: auto;
    transform: scale(1.1);
    transform-origin: center center;
    /* margin: 50px 0 15px;*/ /* Increased top margin to prevent cutoff */
    overflow: visible;
}

/* Inactive steps styling */
.step-item:not(.active) .step-svg {
    opacity: 0.45;
}

/* Connector lines - adjusted position for larger SVGs */
.connector {
    position: absolute;
    /*top: 50px;*/
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

/* =step navigation end
**************/

.page-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* =Form styling
**************/
.form-container {
    padding: 40px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.form-control {
    padding: 12px 15px;
    font-size: 1.05rem;
    border-radius: 6px;
}

.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
}
/* =Form styling end
**************/

@media (max-width: 1200px) {
    .step-item {
        width: 250px;
    }

    .step-svg {
        transform: scale(1.2);
        margin: 40px 0 15px;
    }

    .connector {
        top: 45px;
    }
}

@media (max-width: 992px) {
    .step-item {
        width: 220px;
    }

    .step-svg {
        transform: scale(1.1);
        margin: 30px 0 15px;
    }

    .connector {
        top: 40px;
    }

    .form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 767px) {
    .steps-container {
        padding: 30px 10px;
    }

    .container {
        max-width: 98%;
    }

    .step-item {
        width: 200px;
        margin: 0 10px;
    }

    .step-svg {
        transform: scale(1);
        margin: 20px 0 15px;
    }

    .connector {
        top: 35px;
    }

    .form-container {
        padding: 25px 20px;
    }

    .btn {
        padding: 10px 20px;
    }
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

/* =Submission button styles
**************/
.submit-button {
    position: relative;
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(to right, #1E88E5, #0D47A1);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    overflow: hidden;
}

/* Hover effect */
.submit-button:hover {
    background: linear-gradient(to right, #42A5F5, #1976D2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Active/pressed effect */
.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Disabled state */
.submit-button:disabled {
    background: linear-gradient(to right, #90CAF9, #64B5F6);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

/* Focus state for accessibility */
.submit-button:focus {
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.5);
}

/* Optional ripple effect animation */
.submit-button.with-ripple {
    position: relative;
    overflow: hidden;
}

.submit-button.with-ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.submit-button.with-ripple:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Compact variant */
.submit-button.compact {
    padding: 8px 20px;
    font-size: 1.1em;
}

.submit-button.auto-width {
    width: auto !important;
}

/* =Submission button styles end
**************/

h1.h4 {
    font-size: 1.6rem;
    margin-bottom: 25px;
}

/* For required field indicator */
.required:after {
    content: " *";
    color: red;
}

/* For custom CAPTCHA */
.captcha-image {
    background-color: white;
    border-radius: 4px;
}

.invalid-feedback {
    color: red;
}
/* end For custom CAPTCHA */

@media (max-width: 767px) {
    .steps-row {
        flex-wrap: wrap;
    }
}

.form-label-small-font-size {
    font-size: 0.9rem !important;
}

.display-image-max-wh {
    max-width: 200px;
    max-height: 250px;
}

.display-image-mid-wh {
    max-width: 150px;
    max-height: 200px;
}