/* ==========================================================
   INCCS Translation Request Form – Stylesheet
   ========================================================== */

/* --- Reset & Variables --- */
:root {
    --inccs-primary: #0d9f6e;
    --inccs-primary-hover: #057a55;
    --inccs-primary-light: rgba(13, 159, 110, 0.08);
    --inccs-bg: #f8fafb;
    --inccs-card: #ffffff;
    --inccs-border: #e2e8f0;
    --inccs-text: #1e293b;
    --inccs-text-light: #64748b;
    --inccs-error: #dc2626;
    --inccs-success: #16a34a;
    --inccs-radius: 10px;
    --inccs-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --inccs-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Wrapper --- */
#inccs-tf-wrapper {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: var(--inccs-font);
    box-sizing: border-box;
}

#inccs-tf-wrapper *,
#inccs-tf-wrapper *::before,
#inccs-tf-wrapper *::after {
    box-sizing: border-box;
}

/* --- Form Card --- */
#inccs-tf-form {
    background: var(--inccs-card);
    border: 1px solid var(--inccs-border);
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-shadow: var(--inccs-shadow);
    position: relative;
    overflow: hidden;
}

#inccs-tf-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--inccs-primary), #34d399, var(--inccs-primary));
    background-size: 200% 100%;
    animation: inccs-gradient-slide 4s ease infinite;
}

@keyframes inccs-gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* --- Title --- */
.inccs-tf-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--inccs-text);
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: -0.3px;
}

.inccs-tf-subtitle {
    font-size: 14px;
    color: var(--inccs-text-light);
    margin: 0 0 30px;
    text-align: center;
    line-height: 1.5;
}

/* --- Honeypot (hidden) --- */
.inccs-tf-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* --- Field Group --- */
.inccs-tf-field {
    margin-bottom: 22px;
}

.inccs-tf-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--inccs-text);
    margin-bottom: 7px;
}

.inccs-req {
    color: var(--inccs-error);
    margin-left: 2px;
}

/* --- Inputs, Selects --- */
#inccs-tf-form input[type="text"],
#inccs-tf-form input[type="email"],
#inccs-tf-form input[type="tel"],
#inccs-tf-form input[type="number"],
#inccs-tf-form input[type="date"],
#inccs-tf-form input[type="time"],
#inccs-tf-form input[type="datetime-local"],
#inccs-tf-form select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--inccs-font);
    color: var(--inccs-text);
    background: var(--inccs-bg);
    border: 1.5px solid var(--inccs-border);
    border-radius: var(--inccs-radius);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

#inccs-tf-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

#inccs-tf-form input:focus,
#inccs-tf-form select:focus {
    border-color: var(--inccs-primary);
    box-shadow: 0 0 0 3px var(--inccs-primary-light);
    background: #fff;
}

#inccs-tf-form input::placeholder {
    color: #a0aec0;
}

/* --- File Input --- */
.inccs-tf-file-wrap {
    position: relative;
}

#inccs-tf-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--inccs-font);
    color: var(--inccs-text-light);
    background: var(--inccs-bg);
    border: 1.5px dashed var(--inccs-border);
    border-radius: var(--inccs-radius);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

#inccs-tf-form input[type="file"]:hover {
    border-color: var(--inccs-primary);
    background: var(--inccs-primary-light);
}

/* --- Hint text --- */
.inccs-tf-hint {
    font-size: 12px;
    color: var(--inccs-text-light);
    margin: 6px 0 0;
    line-height: 1.4;
}

.inccs-tf-deadline-note {
    color: #b45309;
    font-style: italic;
    font-weight: 500;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
}

/* --- Conditional Sections --- */
.inccs-tf-conditional {
    animation: inccs-slide-down 0.35s ease;
    border-top: 1px dashed var(--inccs-border);
    margin-top: 8px;
    padding-top: 22px;
}

@keyframes inccs-slide-down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Submit Button --- */
.inccs-tf-submit-wrap {
    margin-top: 30px;
    margin-bottom: 0;
}

.inccs-tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--inccs-font);
    color: #ffffff;
    background: linear-gradient(135deg, var(--inccs-primary), #059669);
    border: none;
    border-radius: var(--inccs-radius);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 14px rgba(13, 159, 110, 0.35);
    position: relative;
    overflow: hidden;
}

.inccs-tf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 159, 110, 0.45);
    background: linear-gradient(135deg, var(--inccs-primary-hover), #047857);
}

.inccs-tf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 159, 110, 0.3);
}

.inccs-tf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* --- Spinner --- */
.inccs-tf-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: inccs-spin 0.7s linear infinite;
}

@keyframes inccs-spin {
    to { transform: rotate(360deg); }
}

/* --- Messages --- */
.inccs-tf-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--inccs-radius);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    animation: inccs-fade-in 0.3s ease;
}

@keyframes inccs-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.inccs-tf-message.inccs-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.inccs-tf-message.inccs-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    #inccs-tf-form {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .inccs-tf-title {
        font-size: 22px;
    }

    .inccs-tf-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    #inccs-tf-form input[type="text"],
    #inccs-tf-form input[type="email"],
    #inccs-tf-form input[type="tel"],
    #inccs-tf-form input[type="number"],
    #inccs-tf-form input[type="date"],
    #inccs-tf-form input[type="time"],
    #inccs-tf-form input[type="datetime-local"],
    #inccs-tf-form select {
        padding: 11px 14px;
        font-size: 14px;
    }

    .inccs-tf-btn {
        padding: 13px 20px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    #inccs-tf-wrapper {
        padding: 0 10px;
        margin: 24px auto;
    }

    #inccs-tf-form {
        padding: 22px 16px 20px;
    }
}
