#screen6 {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
}

.s6-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    max-width: 345px;
}

.s6-intro-text {
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #FFFCF8;
    line-height: 1.5;
}

.s6-main-headline {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: #E6F19A;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.s6-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.s6-form-row {
    display: flex;
    gap: 1rem;
}

.s6-input-group {
    flex-grow: 1;
    width: 100%;
}

.s6-input-group label {
    display: block;
    font-family: 'Varela Round', sans-serif;
    font-size: 0.8rem;
    color: #FFFCF8;
    margin-bottom: 0.5rem;
    text-align: right;
}

.s6-input-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    background: #FFFFFF;
    border: 1px solid #EDF1F3;
    box-shadow: 0px 1px 2px rgba(228, 229, 231, 0.24);
    border-radius: 10px;
    font-family: 'Varela', sans-serif;
    font-size: 1rem;
    color: #1A1C1E;
    text-align: right;
}

.s6-input-group input::placeholder {
    color: #A9A9A9;
}

.s6-input-group input:focus {
    outline: none;
    border-color: #E6F19A;
}

.s6-app-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s6-preview-headline {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    color: #FFFCF8;
    font-weight: 600;
    text-align: center;
}

.s6-phone-mockup {
    max-width: 250px;
    max-height: 400px; /* Controls how much of the image is shown */
    border-radius: 30px;
    border: 6px solid #F0ECE4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #F0ECE4;
    position: relative;

    /* The fade-out effect */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.s6-phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Screen 6: Modern Contact Footer --- */

.s6-footer-contact {
    width: 100%;
    max-width: 343px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 252, 248, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.s6-footer-contact .s6-intro-text {
    color: rgba(255, 252, 248, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.contact-link-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #FFFCF8;
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: opacity 0.2s ease;
}

.contact-link-item:hover {
    opacity: 0.8;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-link-item:active span,
.contact-link-item:focus span {
    color: #E6F19A; 
    font-weight: bold;
    transition: color 0.1s ease-in-out;
}

/* --- Button Submitting State --- */
.screen-btn-next.submitting {
    pointer-events: none; /* Disable clicks while submitting */
    position: relative;
    color: transparent; /* Hide the original text ('שלח') */
}

/* This creates the spinner animation */
.screen-btn-next.submitting::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(40, 39, 67, 0.2);
    border-top-color: #282743;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}