/* ═══════════════════════════════════════════════════════════════════════════
   SUPPORT TICKET - PREMIUM FRONTEND DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --st-primary: #262261;
    --st-primary-light: #3a3386;
    --st-secondary: #21759A;
    --st-secondary-light: #2e9ac7;
    --st-success: #10B981;
    --st-warning: #F59E0B;
    --st-danger: #EF4444;
    --st-gray-50: #F9FAFB;
    --st-gray-100: #F3F4F6;
    --st-gray-200: #E5E7EB;
    --st-gray-600: #6B7280;
    --st-gray-700: #374151;
    --st-white: #FFFFFF;
    --st-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --st-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Container */
.st-wrapper {
    max-width: 650px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Section */
.st-header {
    text-align: center;
    margin-bottom: 30px;
}

.st-header h2 {
    color: var(--st-primary);
    font-size: 26px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.st-header p {
    color: var(--st-gray-600);
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

/* Info Box */
.st-info-box {
    background: #F0F9FF;
    border-left: 4px solid var(--st-secondary);
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 14px;
}

.st-info-box strong {
    display: block;
    color: var(--st-primary);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.st-info-box a {
    color: var(--st-secondary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

.st-info-box a:hover {
    text-decoration: underline;
}

/* Form Container */
.st-form-container {
    background: var(--st-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--st-gray-200);
}

/* Form Groups */
.st-form-group {
    margin-bottom: 20px;
}

.st-label {
    display: block;
    font-weight: 600;
    color: var(--st-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.st-required {
    color: var(--st-danger);
    margin-left: 4px;
    font-size: 16px;
}

/* Input Styles */
.st-input,
.st-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--st-gray-200);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    background: var(--st-white);
}

.st-input:focus,
.st-textarea:focus {
    outline: none;
    border-color: var(--st-secondary);
    box-shadow: 0 0 0 3px rgba(33, 117, 154, 0.1);
}

.st-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Status Badge */
.st-status-container {
    margin: 16px 0;
    min-height: 50px;
}

.st-status-badge {
    padding: 14px 16px;
    border-radius: 8px;
    border: 2px solid;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInScale 0.4s ease-out;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.st-status-badge.loading {
    background: linear-gradient(135deg, var(--st-gray-50) 0%, var(--st-gray-100) 100%);
    border-color: var(--st-gray-200);
    color: var(--st-gray-600);
}

.st-status-badge.loading::before {
    content: "🔄";
    font-size: 20px;
    animation: spin 1.5s linear infinite;
}

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

.st-status-badge.pro {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-color: var(--st-success);
    color: #065F46;
}

.st-status-badge.pro::before {
    content: "✅";
    font-size: 20px;
}

.st-status-badge.free {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: var(--st-warning);
    color: #92400E;
}

.st-status-badge.free::before {
    content: "ℹ️";
    font-size: 20px;
}

.st-status-badge strong {
    font-weight: 700;
    font-size: 14px;
}

.st-status-badge a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.st-status-badge a:hover {
    opacity: 0.8;
    border-bottom-width: 3px;
}

/* File Upload */
.st-file-upload-area {
    position: relative;
    border: 2px dashed var(--st-gray-200);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--st-gray-50);
}

.st-file-upload-area:hover,
.st-file-upload-area.dragover {
    border-color: var(--st-secondary);
    background: #EFF6FF;
}

.st-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.st-upload-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.st-upload-text strong {
    display: block;
    color: var(--st-primary);
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.st-upload-text span {
    display: block;
    color: var(--st-gray-600);
    font-size: 13px;
    font-weight: 400;
}

/* File Preview */
.st-file-preview {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.st-file-item {
    position: relative;
    border: 2px solid var(--st-gray-200);
    border-radius: 12px;
    padding: 12px;
    background: var(--st-white);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease;
}

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

.st-file-item:hover {
    border-color: var(--st-secondary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.st-file-item-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.st-file-item-name {
    font-size: 13px;
    color: var(--st-gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.st-file-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--st-danger);
    color: var(--st-white);
    border: 2px solid var(--st-white);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.st-file-item-remove:hover {
    background: #DC2626;
    transform: scale(1.2) rotate(90deg);
}

/* Submit Button */
.st-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--st-secondary) 0%, var(--st-primary) 100%);
    color: var(--st-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.st-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 34, 97, 0.25);
}

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

/* Success Message */
.st-success-message {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border: 2px solid var(--st-success);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    animation: slideIn 0.4s ease-out;
    margin-bottom: 20px;
}

.st-success-message::before {
    content: "✅";
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

.st-success-message h3 {
    color: #047857;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.st-success-message p {
    color: #065F46;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Error Message */
.st-error-message {
    background: #FEE2E2;
    border: 2px solid var(--st-danger);
    border-radius: 8px;
    padding: 12px 16px;
    color: #991B1B;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.st-error-message::before {
    content: "⚠️";
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .st-wrapper {
        margin: 20px auto;
        padding: 0 16px;
    }

    .st-header h2 {
        font-size: 22px;
    }

    .st-header p {
        font-size: 14px;
    }

    .st-form-container {
        padding: 24px 20px;
    }

    .st-status-badge {
        flex-direction: column;
        text-align: center;
        padding: 14px;
        font-size: 13px;
    }

    .st-file-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .st-upload-icon {
        font-size: 32px;
    }

    .st-file-upload-area {
        padding: 24px 16px;
    }

    .st-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .st-success-message h3 {
        font-size: 16px;
    }

    .st-success-message p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .st-header h2 {
        font-size: 20px;
    }

    .st-form-container {
        padding: 20px 16px;
    }

    .st-file-preview {
        grid-template-columns: 1fr 1fr;
    }
}

/* Loading States */
.st-loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Accessibility */
.st-input:focus-visible,
.st-textarea:focus-visible,
.st-submit-btn:focus-visible {
    outline: 3px solid var(--st-secondary);
    outline-offset: 2px;
}
