/* ==========================
   FULL DARK SUPPORT BACKGROUND + COSMIC ANIMATION
========================== */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a0a2e 25%, #2d1b4e 50%, #1a0a2e 75%, #0a0a1f 100%);
    background-size: 200% 200%;
    animation: gradientShiftBackground 20s ease infinite;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(31, 117, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.05) 0%, transparent 50%);
    animation: particleFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(31,117,254,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShiftBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(50px,-50px) rotate(90deg); }
    50% { transform: translate(-30px,30px) rotate(180deg); }
    75% { transform: translate(40px,40px) rotate(270deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.4; }
}

/* ==========================
   OPEN TICKET FORM - REDUCED SIZE WITH ANIMATIONS
========================== */
#ticket-open {
    display: flex;
    flex-direction: column;
    gap: 8px;            
    max-width: 50%;       
    margin: 0 auto;       
    padding: 5px;
    box-sizing: border-box;
    animation: floatBox 6s ease-in-out infinite; /* floating animation */
    background: rgba(10,20,40,0.7); /* dark semi-transparent box */
    border-radius: 50px;
    border: 5px solid rgba(135,206,250,0.2);
    box-shadow: 10 15px 40px rgba(0,0,0,0.7);
}

form#ticket-open .form-group {
    width: 50%;
    flex: unset;
}

#ticket-open label {
    display: block;
    margin-bottom: 15px;   
    font-weight: 600;
    color: #87cefa;
    font-size: 60px;      
}

#ticket-open input[type="text"],
#ticket-open textarea,
#ticket-open select {
    width: 50%;
    background: rgba(20,30,60,0.6) !important;
    color: #ffffff !important;
    border: 1px solid rgba(135,206,250,0.3);
    border-radius: 15px;   
    padding: 30px;        
    font-size: 13px;      
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#ticket-open input::placeholder,
#ticket-open textarea::placeholder {
    color: #aaaaaa !important;
    font-size: 15px;
}

#ticket-open input:focus,
#ticket-open textarea:focus,
#ticket-open select:focus {
    border-color: #87cefa;
    box-shadow: 0 0 12px rgba(135,206,250,0.5);
    outline: none;
}

/* ==========================
   BUTTONS WITH ANIMATION + COLOR
========================== */
form#ticket-open .buttons {
    display: flex;
    gap: 10px;             
    justify-content: flex-start;
    flex-wrap: wrap;
}

form#ticket-open button,
form#ticket-open a.btn-action {
    flex: 1 1 auto;
    min-width: 70px;     
    font-size: 13px;      
    padding: 10px 20px;   
    border: none;
    border-radius: 20px;  
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;

    /* Gradient background + animation */
    background: linear-gradient(135deg, #556eff 0%, #8e54ff 100%);
    background-size: 100% 100%;
    animation: gradientShift 5s ease infinite;
}

form#ticket-open button:hover,
form#ticket-open a.btn-action:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(120, 180, 255,0.5), 0 0 10px rgba(142,84,255,0.3);
}

/* ==========================
   BUTTON PRESSED VISUAL
========================== */
form#ticket-open button:active,
form#ticket-open a.btn-action:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.6), 0 2px 6px rgba(120,180,255,0.3);
    background: linear-gradient(135deg, #8e54ff 0%, #556eff 100%);
}

/* ==========================
   HELP TOPIC SELECT
========================== */
#topic, .help-topic-list {
    color: #87cefa !important;
    background: rgba(20,30,60,0.6) !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
}

/* ==========================
   FLOATING ANIMATION
========================== */
@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================
   BUTTON GRADIENT ANIMATION
========================== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

