/* Base Setting*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #02866F;
    --secondary-color: #121314;
    --supp-color: white;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #e8ecf0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.container {
    width: 360px;
    min-height: 640px;
    height: auto;
    max-height: 80vh;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'JetBrains Mono';
    font-size: medium;
    line-height: 1.5;
    position: relative;
}

img{
    max-height: 100%; /* Prevent image from exceeding container */
    max-width: 100%;  /* Prevent image from being too wide */
    height: auto;     /* Maintain aspect ratio */
    width: auto;      /* Maintain aspect ratio */
    object-fit: contain; /* Ensure image scales properly */
}

button{
    border-radius: 5px;
    padding: 5px;
}

.contact-footer {
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.contact-footer a {
    color: #2c6ecb;
    text-decoration: none;
    font-weight: 600;
    margin: 0 2px;
}

.contact-footer a:hover {
    text-decoration: underline;
}

/*END of Base Setting*/


/* Progress Steps */
.progress-section {
    text-align: center;
    max-width: 85%;
    margin: 0 auto;
}

.step-indicator {
    color: #6b7280;
    font-size: small;
    margin-bottom: 12px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 8px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
}

.step-dot.active {
    background-color: var(--primary-color);
}

.step-dot.completed {
    background-color: var(--primary-color);
}

.step-line {
    flex: 1;
    width: 80px;
    height: 3px;
    background-color: #d1d5db;
}

.step-line.active {
    background-color: var(--primary-color);
}
/*END of Progress Steps*/


/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    max-height: 40px;
}

.logo{
    display: flex;              /* Enable flexbox */
    justify-content: center;    /* Center horizontally */
    align-items: center;        /* Center vertically */
    width: 75%;
    max-height: 100%;
}

.app-title {
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
}

/*END of Header*/


/*Form Card Base*/
.form-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 8px 6px;
    flex: 0 1 auto; 
    display: flex;
    flex-direction: column;
    overflow: auto; 
}

.form-heading {
    font-size: medium;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.input-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 16px;
}

.input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-label {
    display: block;
    font-size: small;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.input-field {
    width: 100%;
    border: none;
    outline: none;
    font-size: medium;
    color: #6b7280;
    background: transparent;
}

.input-field::placeholder {
    color: #9ca3af;
}

.continue-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    font-size: larger;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.continue-btn:hover {
    background-color: #00c3a3;
}

.continue-btn:active {
    transform: scale(0.98);
}
/*End of Form Card Base*/


/* Back Arrow Button - Minimal Style */
.back-arrow {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    color: #374151;
    padding: 4px 8px;
    margin: 0;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.back-arrow:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #111827;
}

.back-arrow:active {
    background-color: rgba(0, 0, 0, 0.15);
}

.back-arrow.hidden{
    visibility: hidden;
    pointer-events: none;
}
/* End of Back Arrow*/

/* Info Button Container */
.info-btn-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.info-btn-container.hidden{
    display: none;
}

/* Info Button - Exact Circle */
.info-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    font-family: Georgia, serif;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.info-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Tooltip */
.info-tooltip-simple {
    position: absolute;
    top: 46px;
    right: 0;
    width: 220px;
    padding: 12px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.info-tooltip-simple::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #333;
    transform: rotate(45deg);
}

.info-btn-container:hover .info-tooltip-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Auto-show tooltip when idle */
.info-btn-container.tooltip-active .info-tooltip-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Optional: Add subtle pulse animation to info button when tooltip shows */
.info-btn-container.tooltip-active .info-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 134, 111, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(2, 134, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 134, 111, 0);
    }
}

/* Handling for small devices, for device with small width, sometimes elements got cut off*/
@media (max-width : 476px) {

.container{
    padding: 12px 0 0 0;
}

.form-heading{
    margin-bottom: 0px;
    font-size: 16px;
}
}