/* Hiticx Clean Form Styles - NO BACKGROUND */
.hiticx-clean-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 0;
    background: none !important;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.hiticx-clean-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    animation: fadeIn 0.5s ease-out;
}

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

.hiticx-career-form {
    margin: 0;
    padding: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

/* Input Styling */
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #2d3748;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Placeholder styling */
.form-group input::placeholder {
    color: #a0aec0;
}

/* Text color when typing - dark for readability */
.form-group input:focus,
.form-group input:not(:placeholder-shown) {
    color: #2d3748;
}

.form-group input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: none;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
}

.file-upload-wrapper:hover {
    border-color: #4299e1;
    background: #edf2f7;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 8px;
    color: #718096;
    text-align: center;
    min-height: 80px;
    box-sizing: border-box;
}

.file-upload-preview {
    display: none;
    padding: 12px;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    flex-shrink: 0;
    color: #4299e1;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.file-size {
    color: #718096;
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #e53e3e;
    color: white;
}

.file-hint {
    font-size: 11px;
    color: #718096;
    margin-top: 6px;
    text-align: center;
    display: block;
}

/* Submit Button */
.form-submit {
    margin-top: 25px;
    text-align: center;
}

.submit-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #2d3748;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-button:hover:not(:disabled) {
    background: #4a5568;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
}

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

.btn-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Message Styles */
.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    line-height: 1.4;
    font-size: 13px;
    display: none;
}

.form-message.success {
    background: #f0fff4;
    color: #276749;
    border-color: #9ae6b4;
    display: block;
}

.form-message.error {
    background: #fed7d7;
    color: #c53030;
    border-color: #feb2b2;
    display: block;
}

.form-message.info {
    background: #ebf8ff;
    color: #2c5aa0;
    border-color: #90cdf4;
    display: block;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #718096;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hiticx-clean-form-wrapper {
        padding: 20px 15px !important;
        background: none !important;
        min-height: auto !important;
    }
    
    .hiticx-clean-form-container {
        padding: 25px 20px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .form-row {
        margin-bottom: 18px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Better for mobile */
    }
}

@media (max-width: 480px) {
    .hiticx-clean-form-wrapper {
        padding: 15px 12px !important;
    }
    
    .hiticx-clean-form-container {
        padding: 20px 18px;
        border-radius: 10px;
    }
    
    .file-upload-placeholder {
        padding: 15px;
        min-height: 70px;
    }
    
    .submit-button {
        padding: 16px;
        font-size: 16px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hiticx-clean-form-container {
        padding: 18px 15px;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
}