/* Container Styling */
.fct-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.fct-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

/* Field Styling */
.fct-field {
    position: relative;
}

.fct-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0.025em;
}

/* Input Fields */
.fct-field input[type="text"],
.fct-field input[type="number"],
.fct-field input[type="file"],
.fct-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    line-height: 1.4;
}

.fct-field input[type="text"]:focus,
.fct-field input[type="number"]:focus,
.fct-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.fct-field input[type="file"] {
    padding: 6px 10px;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    line-height: 1.2;
}

.fct-field input[type="file"]:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.fct-field input[type="file"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* File Input Custom Styling */
.fct-field input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
    transition: all 0.2s ease-in-out;
    height: 28px;
}

.fct-field input[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Select Dropdown */
.fct-field select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 32px;
    appearance: none;
    cursor: pointer;
}

/* Submit Button */
.fct-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    min-width: 120px;
    line-height: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fct-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.fct-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.fct-submit:hover::before {
    left: 100%;
}

.fct-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Loading State */
.fct-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Result Messages */
.fct-result {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #065f46;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.fct-progress {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #60a5fa;
    border-radius: 8px;
    color: #1e40af;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.fct-error {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #f87171;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Ad Container */
.fct-ad {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .fct-container {
        margin: 20px 15px;
        padding: 24px 20px;
    }
    
    .fct-form {
        gap: 5px;
    }
    
    .fct-submit {
        width: 100%;
        align-self: stretch;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .fct-submit {
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Large devices */
@media (min-width: 1200px) {
    .fct-submit {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Focus States for Accessibility */
.fct-field input:focus,
.fct-field select:focus,
.fct-submit:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Disabled checkbox styling */
.fct-field input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fct-field input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Remove background message styling */
.fct-remove-bg-message {
    margin-top: 8px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-in-out;
}

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