/**
 * Form styles
 */

/* Form container */
.wsf-form-container {
    margin: 20px auto;
    padding: 0;
    box-sizing: border-box;
}

/* Default form layout */
.wsf-signup-form {
    max-width: 100%;
}

/* Form row */
.wsf-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

/* Form fields */
.wsf-form-field {
    flex: 1 1 200px;
    min-width: 0;
}

/* Desktop optimization for default layout */
@media screen and (min-width: 992px) {
    .wsf-signup-form:not(.wsf-layout-stacked) .wsf-form-field {
        flex: 1;
    }
}

/* Inline layout specific styles */
.wsf-layout-inline .wsf-form-row {
    flex-wrap: nowrap;
    gap: 10px;
}

.wsf-layout-inline .wsf-form-field {
    flex: 1;
}

.wsf-layout-inline .wsf-submit-container {
    flex: 0 0 auto;
    width: auto;
}

/* Stacked layout specific styles */
.wsf-layout-stacked .wsf-form-row {
    display: block;
}

.wsf-layout-stacked .wsf-form-field {
    margin-bottom: 15px;
    width: 100%;
}

/* Form inputs */
.wsf-form-field input[type="text"],
.wsf-form-field input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    height: 50px;
    line-height: 50px;
}

/* Submit button */
.wsf-submit-button {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #c81d1d; /* Default, will be overridden by inline style */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    line-height: 30px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Button in inline layout */
.wsf-layout-inline .wsf-submit-button {
    white-space: nowrap;
}

.wsf-submit-button:hover {
    opacity: 0.9;
}

.wsf-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Message container */
.wsf-form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.wsf-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.wsf-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wsf-layout-inline .wsf-form-row {
        flex-wrap: wrap;
    }
    
    .wsf-layout-inline .wsf-form-field {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .wsf-form-field {
        margin-bottom: 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wsf-form-field input[type="text"],
    .wsf-form-field input[type="email"] {
        background-color: #333;
        color: #fff;
        border-color: #555;
    }
}
