/**
 * Talent Umowy - Frontend Styles
 */

/* Wrapper */
.tu-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Messages */
.tu-messages {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.tu-messages ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

/* Form sections */
.tu-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.tu-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a5c2e;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5c2e;
}

/* Form rows */
.tu-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.tu-form-group {
    padding: 0 10px;
    margin-bottom: 20px;
}

.tu-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.tu-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 600px) {
    .tu-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Labels */
.tu-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

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

/* Inputs */
.tu-form-group input[type="text"],
.tu-form-group input[type="email"],
.tu-form-group input[type="tel"],
.tu-form-group input[type="date"],
.tu-form-group textarea,
.tu-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.tu-form-group input:focus,
.tu-form-group textarea:focus,
.tu-form-group select:focus {
    outline: none;
    border-color: #1a5c2e;
    box-shadow: 0 0 0 3px rgba(26, 92, 46, 0.15);
}

.tu-form-group input.tu-error,
.tu-form-group textarea.tu-error,
.tu-form-group select.tu-error {
    border-color: #e53935;
}

.tu-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Error messages */
.tu-error-message {
    display: none;
    color: #e53935;
    font-size: 13px;
    margin-top: 5px;
}

.tu-form-group.has-error .tu-error-message {
    display: block;
}

/* Field hints */
.tu-field-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Contract type selector */
.tu-contract-type-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tu-radio-card {
    flex: 1;
    min-width: 250px;
    cursor: pointer;
}

.tu-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tu-radio-card-content {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}

.tu-radio-card-content strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.tu-radio-card-content span {
    display: block;
    color: #666;
    font-size: 14px;
}

.tu-radio-card-content small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.tu-radio-card input:checked + .tu-radio-card-content {
    border-color: #1a5c2e;
    background: #e8f5e9;
}

.tu-radio-card:hover .tu-radio-card-content {
    border-color: #1a5c2e;
}

/* Checkbox */
.tu-checkbox-group {
    margin: 20px 0;
}

.tu-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.tu-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #1a5c2e;
}

.tu-checkbox-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.tu-checkbox-text a {
    color: #1a5c2e;
    text-decoration: underline;
}

/* Submit button */
.tu-form-actions {
    margin-top: 30px;
    text-align: center;
}

.tu-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 15px 40px;
    background: #1a5c2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tu-submit-btn:hover {
    background: #145024;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 92, 46, 0.3);
}

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

.tu-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner */
.tu-spinner {
    width: 20px;
    height: 20px;
    animation: tu-spin 1s linear infinite;
}

.tu-spinner circle {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -10;
}

@keyframes tu-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Success state */
.tu-form-success {
    text-align: center;
    padding: 40px 20px;
}

.tu-form-success .tu-success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tu-form-success .tu-success-icon svg {
    width: 40px;
    height: 40px;
    color: #1a5c2e;
}

.tu-form-success h3 {
    font-size: 24px;
    color: #1a5c2e;
    margin: 0 0 15px 0;
}

.tu-form-success p {
    color: #666;
    font-size: 16px;
    margin: 0;
}
