.stf-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.stf-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.stf-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.stf-form-section h3 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

.stf-form-row {
    margin-bottom: 20px;
}

.stf-form-row:last-child {
    margin-bottom: 0;
}

.stf-form-row-half {
    display: flex;
    gap: 20px;
}

.stf-form-col {
    flex: 1;
}

.stf-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.stf-form label .required {
    color: #e53935;
}

.stf-form input[type="text"],
.stf-form input[type="email"],
.stf-form input[type="tel"],
.stf-form input[type="date"],
.stf-form input[type="number"],
.stf-form textarea,
.stf-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.stf-form input:focus,
.stf-form textarea:focus,
.stf-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.stf-form textarea {
    resize: vertical;
    min-height: 100px;
}

.stf-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.stf-form input.stf-field-error,
.stf-form textarea.stf-field-error,
.stf-form select.stf-field-error {
    border-color: #e53935;
    background-color: #fff8f8;
}

.stf-form-submit {
    text-align: center;
    margin-top: 25px;
}

.stf-submit-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.stf-submit-btn:hover {
    background: #005a87;
}

.stf-submit-btn:active {
    transform: translateY(1px);
}

.stf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.stf-form-messages {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
}

.stf-form-messages.stf-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.stf-form-messages.stf-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.stf-error {
    color: #c62828;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .stf-form {
        padding: 20px;
    }

    .stf-form-row-half {
        flex-direction: column;
        gap: 0;
    }

    .stf-form-col {
        margin-bottom: 20px;
    }

    .stf-form-col:last-child {
        margin-bottom: 0;
    }

    .stf-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
