/* TurkSave Simple Form - CSS */

.tsf-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tsf-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.tsf-form {
    width: 100%;
}

.tsf-form-group {
    margin-bottom: 20px;
}

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

.tsf-required {
    color: #dc3545;
}

.tsf-input,
.tsf-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

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

.tsf-input::placeholder,
.tsf-textarea::placeholder {
    color: #999;
}

.tsf-textarea {
    resize: vertical;
    min-height: 120px;
}

.tsf-select {
    padding: 12px 15px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
}

.tsf-radio-group,
.tsf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tsf-radio-label,
.tsf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.tsf-radio-label:hover,
.tsf-checkbox-label:hover {
    background-color: #f5f5f5;
    border-color: #0073aa;
}

.tsf-radio-label input[type="radio"],
.tsf-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tsf-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tsf-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.tsf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tsf-btn-loader svg {
    animation: tsf-spin 1s linear infinite;
}

@keyframes tsf-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tsf-form-messages {
    margin-bottom: 20px;
    padding: 0;
}

.tsf-message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: tsf-slideIn 0.3s ease;
}

@keyframes tsf-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tsf-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tsf-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tsf-recaptcha-notice {
    margin-top: 15px;
    text-align: center;
    color: #666;
}

.tsf-recaptcha-notice small {
    font-size: 12px;
}

.tsf-recaptcha-notice a {
    color: #0073aa;
    text-decoration: none;
}

.tsf-recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tsf-form-container {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .tsf-form-title {
        font-size: 20px;
    }
    
    .tsf-input,
    .tsf-textarea {
        font-size: 16px; /* iOS zoom fix */
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .tsf-form-container {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .tsf-form-group label {
        color: #e0e0e0;
    }
    
    .tsf-input,
    .tsf-textarea {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .tsf-input::placeholder,
    .tsf-textarea::placeholder {
        color: #777;
    }
    
    .tsf-recaptcha-notice {
        color: #999;
    }
}
