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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 600px;
}

.form-container, .scheduling-container {
    width: 100%;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.scheduling-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    color: #2563eb;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 30px;
    text-align: left;
}

.demo-form {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-input,
.form-select {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background-color: #f2f4f7;
    font-size: 16px;
    color: #1a1a1a;
    outline: 1px solid #ebebeb;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #a3a3a3;
}

.form-input:focus,
.form-select:focus {
    background-color: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
    color: #9ca3af;
}

.form-select:focus,
.form-select:valid {
    color: #374151;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #0337e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #0332d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #a3a3a3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Success message styles */
.success-message {
    line-height: 1.4;
}

.success-message a {
    color: inherit;
    text-decoration: underline;
}

.success-message a:hover {
    text-decoration: none;
}

/* Error message styles */
.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Translation loading state */
.loading-translations {
    opacity: 0.7;
}


/* Responsive design */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .form-container {
        margin: 10px;
    }
    
    .form-title {
        font-size: 18px;
    }
}

/* Enhanced error state - HIGHEST PRIORITY */
.form-input.error,
.form-select.error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Form validation styles - LOWER PRIORITY */
.form-input:invalid:not(:placeholder-shown):not(.error){
    border: 2px solid #ef4444;
    background-color: #fef2f2;
}

/* Animation for dynamic content changes */
[data-translate],
[data-translate-placeholder] {
    transition: opacity 0.2s ease;
}

.translation-updating {
    opacity: 0.5;
}

/* Styles for student info message content */
#studentInfoView {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.info-modal-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.info-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #048140;
    margin-bottom: 15px;
}

.info-modal-message {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.info-modal-message a {
    color: #0337e8;
    text-decoration: underline;
}

/* Confirmation View Styles */
#confirmationView {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.confirmation-icon {
  margin-bottom: 18px;
}

.confirmation-title {
  color: #048140;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  margin-bottom: 20px;
}

.confirmation-datetime {
    margin-bottom: 40px;
    border-radius: 8px;
    background: #E6EBFD;
    display: flex;
    padding: 8px 32px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: column;
  }

.confirmation-date, .confirmation-time {
    color: #0337E8;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 155.556% */
}

.confirmation-duration {
    color: #0337E8;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}


.confirmation-message {
    color: #595959;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.confirmation-email {
    color: #595959;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.confirmation-booking:disabled {
    background: #a3a3a3;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading states - works for both iframe and normal modes */
.submit-btn .loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin: 0;
}

.confirm-booking .loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
