/* =============================================================================
   LIA REGISTRATION FORM STYLES
   ============================================================================= */

.lia-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.lia-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Honeypot - visually hidden but accessible to bots */
.lia-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Sections */
.lia-section {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.lia-section:last-child {
    border-bottom: none;
}

.lia-section h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
}

.lia-section h3 {
    margin: 0 0 15px 0;
    color: #34495e;
    font-size: 18px;
    font-weight: 600;
}

.lia-intro {
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.lia-intro ol {
    margin: 15px 0;
    padding-left: 20px;
}

.lia-intro li {
    margin-bottom: 10px;
}

.lia-required-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Form Fields */
.lia-field {
    margin-bottom: 20px;
}

.lia-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.lia-field-note {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
}

.lia-field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: block;
}

.lia-field input[type="text"],
.lia-field input[type="email"],
.lia-field input[type="tel"],
.lia-field input[type="date"],
.lia-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lia-field input:focus,
.lia-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.lia-field input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* Row layout for multiple fields */
.lia-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lia-row .lia-field {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .lia-row {
        flex-direction: column;
        gap: 0;
    }
    
    .lia-row .lia-field {
        margin-bottom: 20px;
    }
}

/* Radio Groups */
.lia-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lia-radio {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.lia-radio:hover {
    background: #e9ecef;
}

.lia-radio input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.lia-radio span {
    flex: 1;
}

/* Checkbox Groups */
.lia-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lia-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.lia-checkbox:hover {
    background: #e9ecef;
}

.lia-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.2);
    flex-shrink: 0;
}

.lia-checkbox span {
    flex: 1;
    line-height: 1.4;
}

/* Waiver Section */
.lia-waiver {
    background: #fafafa;
}

.lia-waiver-text {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.lia-waiver-text p {
    margin: 0 0 15px 0;
}

.lia-waiver-text p:last-child {
    margin-bottom: 0;
}

.lia-waiver-checkbox {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffc107;
}

.lia-waiver-checkbox .lia-checkbox {
    background: transparent;
    padding: 0;
}

.lia-waiver-checkbox .lia-checkbox:hover {
    background: transparent;
}

/* Submit Section */
.lia-submit-section {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.lia-submit-btn {
    background: #6a4c93;
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.lia-submit-btn:hover {
    background: #553c75;
}

.lia-submit-btn:active {
    transform: scale(0.98);
}

/* Success Message */
.lia-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.lia-success-message h2 {
    color: #155724;
    margin: 0 0 20px 0;
}

.lia-success-message p {
    color: #155724;
    margin: 10px 0;
}

/* Links */
.lia-form a {
    color: #3498db;
    text-decoration: none;
}

.lia-form a:hover {
    text-decoration: underline;
}

/* Error states */
.lia-field.has-error input,
.lia-field.has-error select {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.lia-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}
