/**
 * Mirales Formularz Rekrutacyjny - Style
 */

.mr-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.mr-form {
    /* background: #ffffff; */
    /* border-radius: 18px; */
    /* padding: 40px; */
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); */
    /* box-sizing: border-box; */
}

.mr-form-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.mr-form-row--two-cols {
    flex-direction: column;
}

.mr-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.mr-form-group:last-of-type {
    margin-bottom: 0;
}

.mr-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    display: block;
}

.mr-required {
    color: #1b4134;
    margin-left: 2px;
}

.mr-input,
.mr-textarea {
    width: 100%;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #111827;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.mr-input:focus,
.mr-textarea:focus {
    outline: none;
    border-color: #1b4134;
    box-shadow: none;
}

.mr-input::placeholder,
.mr-textarea::placeholder {
    color: #9ca3af;
}

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

/* File Upload */
.mr-file-wrapper {
    position: relative;
}

.mr-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.mr-file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 1.5px dashed #d1d5db;
    border-radius: 0;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 54px;
    box-sizing: border-box;
}

.mr-file-label:hover {
    border-color: #1b4134;
    background: #f3f4f6;
}

.mr-file-input:focus + .mr-file-label {
    border-color: #1b4134;
    box-shadow: none;
}

.mr-file-icon {
    width: 20px;
    height: 20px;
    color: #1b4134;
    flex-shrink: 0;
}

.mr-file-text {
    font-size: 15px;
    color: #6b7280;
    flex: 1;
}

.mr-file-name {
    font-size: 14px;
    color: #1b4134;
    font-weight: 500;
    margin-left: auto;
    display: none;
}

.mr-file-input:valid + .mr-file-label .mr-file-text {
    display: none;
}

.mr-file-input:valid + .mr-file-label .mr-file-name {
    display: block;
}

/* Info Text */
.mr-form-group--info {
    margin-bottom: 16px;
}

.mr-info-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.mr-info-text a {
    color: #1b4134;
    text-decoration: underline;
}

.mr-info-text a:hover {
    text-decoration: none;
}

/* Submit Button */
.mr-submit-btn {
    width: 100%;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #1b4134;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    font-family: inherit;
    box-shadow: none;
}

.mr-submit-btn:hover {
    background: #153028;
    box-shadow: none;
    transform: none;
}

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

.mr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mr-submit-loader {
    display: inline-flex;
    align-items: center;
}

.mr-loader {
    width: 20px;
    height: 20px;
    animation: mr-spin 0.8s linear infinite;
}

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

/* Error Messages */
.mr-error {
    display: none;
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
    line-height: 1.4;
}

.mr-error.active {
    display: block;
}

.mr-input.error,
.mr-textarea.error,
.mr-file-label.error {
    border-color: #dc2626;
}

/* Success Message */
.mr-success-message {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    box-shadow: none;
}

.mr-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #f0fdf4;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b4134;
}

.mr-success-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 3;
}

.mr-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}

.mr-success-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.6;
}

.mr-reset-btn {
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1b4134;
    background: transparent;
    border: 1.5px solid #1b4134;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mr-reset-btn:hover {
    background: #1b4134;
    color: #ffffff;
}

.mr-form-wrapper .mr-info-text {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

/* Responsive */
@media (min-width: 768px) {
    .mr-form-row--two-cols {
        flex-direction: row;
        gap: 24px;
    }

    .mr-form-row--two-cols .mr-form-group {
        flex: 1;
        margin-bottom: 0;
    }

    .mr-form {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .mr-form {
        padding: 0;
        border-radius: 0;
    }

    .mr-success-message {
        padding: 0;
    }

    .mr-submit-btn {
        padding: 0;
        font-size: 15px;
    }
}
