/* 
    cta
*/

.cta {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 3rem 2rem;
    margin-block: 10vh;
}

@media (max-width: 767px) {
    .cta {
        text-align: center;
        min-height: 80vh;
        padding: 0;
        margin-block: 5vh;
        margin-inline: 0;
    }
}

.cta-container {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 3rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    z-index: 3;
    transition: box-shadow 5s ease-out;
}

.cta-container.shadow {
    box-shadow: var(--shadow-m);
}

@media (max-width: 767px) {
    .cta-container {
        padding: 1.5rem;
        border-radius: 0.5rem;
        max-width: 100%;
    }
}

.cta .section-header {
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .cta .section-header {
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
}

#cta-title {
    z-index: 2;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    #cta-title {
        font-size: var(--fs-xl);
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
}

.cta .section-text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--grey);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .cta .section-text {
        margin: 1rem 0 1.5rem 0;
        padding: 0 0.5rem;
        font-size: var(--fs-sm);
        line-height: 1.45;
    }
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 767px) {
    .cta-form {
        text-align: center;
        margin: 0;
        gap: 0.75rem;
    }
}

.form-dropdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-dropdown.collapsed {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-20px);
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.form-input {
    padding: 1rem 1.25rem;
    margin: 0.25rem;
    border: 1px solid #ffffff00;
    box-shadow: 0px 0px 4px #00000012, 4px 0px 16px 2px #00000006;
    border-radius: 0.35rem;
    font-size: var(--fs-md);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    background-color: var(--white);
}

@media (max-width: 767px) {
    .form-input {
        padding: 0.875rem 1rem;
        margin: 0.15rem;
        font-size: var(--fs-sm);
        border-radius: 0.25rem;
    }
}

.form-input:focus {
    outline: none;
    border: 1px solid var(--white);
    box-shadow: 0px 0px 8px #00000012, 4px 0px 24px 8px #00000012;
    transform: translateY(-1px);
}

.form-input::placeholder {
    text-align: center;
    color: var(--soft-grey);
}

@media (max-width: 767px) {
    .form-input::placeholder {
        font-size: var(--fs-sm);
    }
}

.consent-row {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 767px) {
    .consent-row {
        margin-top: 1.5rem;
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

.consent-label {
    text-align: start;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--grey);
    cursor: pointer;
    flex: 1;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .consent-label {
        font-size: 0.8rem;
        line-height: 1.4;
        gap: 0.65rem;
    }
}

.consent-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--black);
    background: var(--super-white);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.25rem;
    border-radius: 2px;
    transition: background-color 0.2s, border-color 0.2s;
}

@media (max-width: 767px) {
    .consent-checkbox {
        width: 22px;
        height: 22px;
        margin-top: 0;
    }
}

.consent-checkbox:checked {
    background: var(--black);
}

.consent-checkbox:checked::after {
    font-family: var(--garik);
    content: '✓';
    color: var(--super-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: bold;
}

#cta-submit-btn {
    transition: all 0.3s ease;
    padding: 0.875rem 2rem;
    font-size: var(--fs-md);
}

@media (max-width: 767px) {
    #cta-submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: var(--fs-sm);
        margin-top: 0.5rem;
    }
}

#cta-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--grey);
    color: var(--white);
}

.success-message {
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

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

@media (max-width: 767px) {
    .success-message {
        padding: 1rem;
    }
    
    .success-message figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .success-message figcaption {
        font-size: var(--fs-md);
        line-height: 1.4;
        text-align: center;
    }
}

.success-message * img {
    box-shadow: none;
    max-width: 200px;
    height: auto;
}

@media (max-width: 767px) {
    .success-message * img {
        max-width: 150px;
    }
}
