/* ICICI THEME UPDATES */
:root {
    --icici-orange: #F37E20;
    --icici-dark-orange: #d86810;
    --icici-blue: #053c6d;
    --bg-color: #fff5e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background-color: #f4f6f8;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.bank-logo {
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    background-color: white;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.bank-logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

.main-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 25px;
    width: 100%;
    padding: 0 15px;
}

.page-title h1 {
    font-size: 26px;
    color: var(--icici-blue);
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.3;
    font-weight: 700;
}

.page-title p {
    font-size: 15px;
    color: #555;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(243, 126, 32, 0.15);
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    margin-bottom: 30px;
    border-top: 4px solid var(--icici-orange);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

/* Input icon wrapper */
.input-icon-wrapper {
    position: relative;
    margin: 8px 0;
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icici-blue);
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 1.5px solid #dcdcdc;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.input-icon-wrapper select {
    padding-left: 42px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
    box-shadow: 0px 0px 8px rgba(243, 126, 32, 0.2);
    border-color: var(--icici-orange);
    transform: scale(1.01);
    outline: none;
}

.input-icon-wrapper input.error,
.input-icon-wrapper select.error {
    border-color: #e74c3c;
    box-shadow: 0px 0px 8px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    text-align: left;
    margin-top: -5px;
    margin-bottom: 10px;
    display: none;
    padding-left: 42px;
}

.button {
    background: linear-gradient(135deg, var(--icici-orange) 0%, var(--icici-dark-orange) 100%);
    color: #fff;
    border: none;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.button:hover {
    background: linear-gradient(135deg, var(--icici-dark-orange) 0%, var(--icici-orange) 100%);
    transform: scale(1.02);
    box-shadow: 0px 4px 10px rgba(243, 126, 32, 0.3);
}

.verification-animation {
    display: none;
    font-size: 18px;
    font-weight: bold;
    animation: fadeInScale 1s ease forwards, pulse 1s infinite alternate;
    margin-top: 20px;
    letter-spacing: 0.5px;
    color: var(--icici-orange);
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    background-color: rgba(243, 126, 32, 0.1);
    border: 1px solid var(--icici-orange);
}

.verification-animation.success {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
}

.cibil-animation {
    display: none;
    animation: fadeInScale 0.5s ease forwards;
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cibil-checking {
    background: linear-gradient(135deg, #053c6d 0%, #032b4d 100%);
    border: 1px solid #053c6d;
    color: #e8eaf6;
}

.cibil-failed {
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
    border: 1px solid #d32f2f;
    color: #ffebee;
}

.cibil-manual {
    background: linear-gradient(135deg, var(--icici-orange) 0%, var(--icici-dark-orange) 100%);
    border: 1px solid var(--icici-orange);
    color: #fff;
}

.gif-container {
    width: 220px;
    height: auto;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cibil-gif-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cibil-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    padding: 0 10px;
}

.cibil-subtext {
    font-size: 14px;
    opacity: 0.9;
    max-width: 95%;
    margin: 0 auto;
    line-height: 1.4;
    padding: 0 10px;
}

.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots span {
    animation: blink 1.4s infinite both;
    font-size: 20px;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.cibil-progress {
    width: 90%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 15px auto;
    overflow: hidden;
    position: relative;
}

.cibil-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    border-radius: 3px;
    width: 0%;
    animation: progressFill 5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
    padding: 0 10px;
}

.progress-bar {
    position: absolute;
    height: 3px;
    background: #ddd;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    transition: width 0.3s ease;
    z-index: 0;
}

.progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    z-index: 1;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    font-size: 14px;
}

.progress-step.active {
    background-color: var(--icici-orange);
    color: white;
    border-color: var(--icici-orange);
}

.progress-step.completed {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    text-align: left;
    font-size: 13px;
    color: #856404;
}

.note strong {
    color: var(--icici-dark-orange);
}

.info-section {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0, 0.05);
    border: 1px solid #eee;
    border-left: 4px solid var(--icici-blue);
}

.info-section h3 {
    color: var(--icici-blue);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.info-section p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #555;
    font-size: 14px;
}

.website-footer {
    background: linear-gradient(135deg, var(--icici-orange) 0%, var(--icici-dark-orange) 100%);
    color: white;
    padding: 30px 0 15px;
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 100%;
    margin-bottom: 25px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #fff;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p,
.footer-section a {
    color: #fff;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-section a:hover {
    color: #ffe0b2;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px;
    font-size: 13px;
    color: #fff;
    padding: 15px 20px 0;
}

.verification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.verification-gif {
    width: 120px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    backdrop-filter: blur(3px);
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 85%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: popupSlideUp 0.4s ease-out;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid var(--icici-orange);
}

.popup-gif {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    max-width: 100%;
}

.popup-title-text {
    font-size: 18px;
    color: var(--icici-blue);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.popup-description {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
}

.popup-features {
    font-size: 12px;
    color: #555;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    width: 100%;
    border: 1px solid #ddd;
}

@keyframes popupSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (min-width: 481px) {
    .container {
        max-width: 450px;
        padding: 25px;
        margin: 0 auto 30px;
    }
    .main-content {
        padding: 0 20px;
    }
    .footer-section {
        min-width: 48%;
    }
}

@media (min-width: 769px) {
    .main-content {
        max-width: 1200px;
        padding: 0 30px;
    }
    .container {
        max-width: 500px;
        padding: 30px;
    }
    .info-section {
        max-width: 800px;
        padding: 25px;
        margin: 30px auto;
    }
    .footer-section {
        min-width: 30%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 0 10px 30px;
        width: calc(100% - 20px);
    }
    .info-section {
        padding: 15px;
        margin: 20px 10px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 360px) {
    .container {
        padding: 15px;
        margin: 0 8px 25px;
        width: calc(100% - 16px);
    }
}