.olb-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.olb-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

.olb-form-actions {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.olb-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.olb-field-type-hidden {
    display: none;
}

/* Layout classes with flex-basis */
.form-item-full {
    flex: 0 0 100%;
}

.form-item-half {
    flex: 0 0 calc(50% - 10px);
}

.form-item-third {
    flex: 0 0 calc(33.333% - 13.333px);
}

.olb-field-type-acceptance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-direction: row;
}

@media (max-width: 992px) {
    .form-item-third {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .olb-form-fields {
        gap: 15px;
    }
    
    .form-item-half,
    .form-item-third {
        flex: 0 0 100%;
    }
    
    .olb-form-submit {
        justify-content: center;
    }
}

/* Form field styling */
.olb-form-field input[type="text"],
.olb-form-field input[type="email"],
.olb-form-field input[type="tel"],
.olb-form-field input[type="number"],
.olb-form-field textarea,
.olb-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.olb-form-field input:focus,
.olb-form-field textarea:focus,
.olb-form-field select:focus {
    border-color: #0073aa;
    outline: none;
}

.olb-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.olb-form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Radio and Checkbox groups */
.olb-radio-option,
.olb-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.olb-radio-option label,
.olb-checkbox-option label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.olb-radio-option input,
.olb-checkbox-option input {
    margin: 0;
}

/* Submit button */
.olb-form-submit {
    display: flex; 
    padding:  0px 0 0;
}

.olb-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.olb-submit-button:hover {
    background: #005177;
}

.olb-form-error {
    background: #dc3232;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.required {
    color: #dc3232;
    margin-left: 4px;
}

/* Field focus and hover states */
.olb-form-field input:hover,
.olb-form-field textarea:hover,
.olb-form-field select:hover {
    border-color: #0073aa;
}

/* Select dropdown styling */
.olb-form-field select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* reCAPTCHA wrapper */
.olb-recaptcha-wrapper {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .olb-recaptcha-wrapper {
        display: flex;
        justify-content: center;
    }
}

/* reCAPTCHA field */
.olb-field-type-recaptcha {
    display: flex;
    justify-content: center;
  
}

@media (max-width: 768px) {
    .olb-field-type-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/* reCAPTCHA textarea in admin */
.field-recaptcha-code {
    font-family: monospace;
    min-height: 80px;
}

/* Form messages */
.olb-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.olb-form-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.olb-form-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.olb-form-error ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

/* Field error state */
.olb-field-error {
    border-color: #a94442 !important;
    box-shadow: 0 0 0 1px #a94442 !important;
}

/* Submit button loading state */
.olb-submit-loading {
    opacity: 0.7;
    cursor: wait;
}

.olb-submit-loading:after {
    content: "...";
    display: inline-block;
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
} 