/* Mikropor Career Form - Frontend Styles */

:root {
    --mpcf-primary: #0066cc;
    --mpcf-primary-dark: #004d99;
    --mpcf-success: #28a745;
    --mpcf-error: #dc3545;
    --mpcf-text: #333333;
    --mpcf-text-light: #666666;
    --mpcf-border: #e0e0e0;
    --mpcf-bg: #f8f9fa;
    --mpcf-white: #ffffff;
    --mpcf-radius: 8px;
    --mpcf-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Form Wrapper */
.mpcf-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--mpcf-white);
    border-radius: var(--mpcf-radius);
    box-shadow: var(--mpcf-shadow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.mpcf-logo {
    text-align: center;
    margin-bottom: 30px;
}

.mpcf-logo img {
    max-width: 200px;
    height: auto;
}

.mpcf-form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--mpcf-text);
    margin: 0 0 40px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--mpcf-primary);
}

/* Sections */
.mpcf-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--mpcf-border);
}

.mpcf-section:last-of-type {
    border-bottom: none;
}

.mpcf-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--mpcf-primary);
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpcf-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--mpcf-primary);
    border-radius: 2px;
}

/* Grid Layout */
.mpcf-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mpcf-col {
    flex: 1;
    min-width: 0;
}

.mpcf-col-full {
    flex: 0 0 100%;
}

@media (max-width: 768px) {
    .mpcf-row {
        flex-direction: column;
    }
    
    .mpcf-form-wrapper {
        padding: 20px;
    }
}

/* Form Fields */
.mpcf-field {
    margin-bottom: 20px;
}

.mpcf-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--mpcf-text);
    margin-bottom: 8px;
}

.mpcf-required {
    color: var(--mpcf-error);
    margin-left: 2px;
}

.mpcf-field input[type="text"],
.mpcf-field input[type="email"],
.mpcf-field input[type="tel"],
.mpcf-field input[type="date"],
.mpcf-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--mpcf-border);
    border-radius: var(--mpcf-radius);
    background: var(--mpcf-white);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mpcf-field input:focus,
.mpcf-field textarea:focus {
    outline: none;
    border-color: var(--mpcf-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.mpcf-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Radio & Checkbox Groups */
.mpcf-radio-group,
.mpcf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mpcf-radio,
.mpcf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--mpcf-text);
}

.mpcf-radio input[type="radio"],
.mpcf-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mpcf-primary);
}

.mpcf-other-lang-input {
    width: 150px !important;
    padding: 8px 12px !important;
    margin-left: 10px;
    display: none;
}

.mpcf-checkbox input[value="other"]:checked ~ .mpcf-other-lang-input {
    display: inline-block;
}

/* Tables */
.mpcf-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.mpcf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mpcf-table th,
.mpcf-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--mpcf-border);
}

.mpcf-table th {
    background: var(--mpcf-bg);
    font-weight: 600;
    color: var(--mpcf-text);
    white-space: nowrap;
}

.mpcf-table td {
    background: var(--mpcf-white);
}

.mpcf-table td:first-child {
    width: 40px;
    text-align: center;
    font-weight: 500;
    color: var(--mpcf-text-light);
}

.mpcf-table input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
}

.mpcf-table input[type="text"]:focus {
    background: var(--mpcf-white);
    border-color: var(--mpcf-primary);
    outline: none;
}

.mpcf-table input[type="text"]:hover {
    background: var(--mpcf-bg);
}

/* Language Level Table */
.mpcf-table-small {
    font-size: 13px;
}

.mpcf-table-small th,
.mpcf-table-small td {
    padding: 10px;
    text-align: center;
}

.mpcf-table-small td:first-child {
    text-align: left;
    width: auto;
}

.mpcf-language-level {
    margin: 20px 0;
    padding: 20px;
    background: var(--mpcf-bg);
    border-radius: var(--mpcf-radius);
}

.mpcf-language-level h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--mpcf-text);
}

/* File Upload */
.mpcf-file-upload {
    position: relative;
}

.mpcf-file-upload input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px dashed var(--mpcf-border);
    border-radius: var(--mpcf-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mpcf-file-upload input[type="file"]:hover {
    border-color: var(--mpcf-primary);
    background: rgba(0, 102, 204, 0.02);
}

.mpcf-file-info {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mpcf-text-light);
}

/* Disclaimer */
.mpcf-disclaimer {
    margin: 30px 0;
    padding: 20px;
    background: var(--mpcf-bg);
    border-radius: var(--mpcf-radius);
    border-left: 4px solid var(--mpcf-primary);
}

.mpcf-disclaimer .mpcf-checkbox {
    align-items: flex-start;
}

.mpcf-disclaimer .mpcf-checkbox span {
    font-size: 13px;
    line-height: 1.6;
    color: var(--mpcf-text-light);
}

/* Submit Button */
.mpcf-submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.mpcf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--mpcf-white);
    background: linear-gradient(135deg, var(--mpcf-primary) 0%, var(--mpcf-primary-dark) 100%);
    border: none;
    border-radius: var(--mpcf-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.mpcf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.mpcf-submit-btn:active {
    transform: translateY(0);
}

.mpcf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.mpcf-spinner {
    width: 20px;
    height: 20px;
    animation: mpcf-rotate 1s linear infinite;
}

.mpcf-spinner circle {
    stroke: var(--mpcf-white);
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: mpcf-dash 1.5s ease-in-out infinite;
}

@keyframes mpcf-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes mpcf-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Messages */
.mpcf-message {
    padding: 20px;
    border-radius: var(--mpcf-radius);
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.mpcf-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--mpcf-success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.mpcf-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--mpcf-error);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Validation */
.mpcf-field.mpcf-invalid input,
.mpcf-field.mpcf-invalid textarea {
    border-color: var(--mpcf-error);
}

.mpcf-field.mpcf-invalid label {
    color: var(--mpcf-error);
}

/* Animations */
.mpcf-form-wrapper {
    animation: mpcf-fadeIn 0.5s ease;
}

@keyframes mpcf-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .mpcf-form-wrapper {
        padding: 15px;
        border-radius: 0;
    }
    
    .mpcf-form-title {
        font-size: 22px;
    }
    
    .mpcf-section-title {
        font-size: 18px;
    }
    
    .mpcf-table th,
    .mpcf-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .mpcf-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .mpcf-radio-group,
    .mpcf-checkbox-group {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .mpcf-form-wrapper {
        box-shadow: none;
        padding: 0;
    }
    
    .mpcf-submit-wrapper,
    .mpcf-file-upload {
        display: none;
    }
}
