
.vai-form-container {
    background-color: #000000;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 770px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 54px;
    position: relative;
}

.vai-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vai-form--multisection .vai-form-section{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vai-form-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vai-form-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.vai-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.vai-form-field.full-width {
    width: 100%;
}

.vai-form-field.hidden-field {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.vai-form-field label {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #fafafa;
    width: 100%;
}

.vai-form .input-container {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.vai-form input, 
.vai-form textarea {
    width: 100%;
    background: transparent;
    outline: none;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #fafafa;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #2c2b2b;
}

.vai-form input:hover,
.vai-form textarea:hover
{
    border-color: #a6a4a4;
}

.vai-form input:focus,
.vai-form input:active,
.vai-form textarea:focus,
.vai-form textarea:active{
    border-color: #ffffff;
}

.vai-form input::placeholder, 
.vai-form textarea::placeholder {
    color: #454343;
}

.vai-form .phone-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.vai-form .country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #2c2b2b;
    gap: 4px;
    height: 42px;
    cursor: pointer;
}

.vai-form .country-code span {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #fafafa;
}

.vai-form .textarea-container {
    height: 256px;
    align-items: flex-start;
}

.vai-form .textarea-container textarea {
    height: 100%;
    resize: none;
}

.vai-form-input-error {
    border-color: #ff0000 !important;
}

/**
 * Form UI Styles
 * 
 * Includes styles for form validation, loading states, and response screens.
 * Can be used across all forms on the website.
 */

/* Form Validation Styles */
.vai-form-input-error {
    border-color: #FF5252 !important;
}

/* Loading Overlay Styles */
.vai-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 16px;
}

.vai-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Response Screen Styles */
.vai-response-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.vai-response-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    padding: 24px;
}

.vai-response-icon {
    margin-bottom: 24px;
}

.vai-response-title {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 35px;
    color: #ffffff;
    margin-bottom: 16px;
}

.vai-response-message {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #a6a4a4;
    margin-bottom: 32px;
}

.vai-response-button {
    width: 100%;
    max-width: 320px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.vai-success .vai-response-title {
    color: #2FBF71;
}

.vai-error .vai-response-title {
    color: #FF5252;
}

/* Make sure form containers have position relative for absolute positioning of overlay */
.contact-form-container,
.speaker-form-container,
.sponsor-form-container {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vai-response-content {
        padding: 16px;
    }
    
    .vai-response-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .vai-response-message {
        font-size: 14px;
        line-height: 20px;
    }
}

.country-code.vai-form-country-code{
  display: none;
}