/* Feedback Modal - Fiery Welder Theme */

/* Modal Overlay */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

.feedback-modal-overlay.modal-closing {
    opacity: 0;
    visibility: hidden;
}

/* Modal Content */
.feedback-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    border: 3px solid #FF6B35;
    box-shadow:
        0 0 50px rgba(255, 107, 53, 0.3),
        0 0 100px rgba(255, 107, 53, 0.1),
        inset 0 0 30px rgba(255, 107, 53, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Welding Sparks Animation */
.welding-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.spark {
    position: absolute;
    font-size: 24px;
    animation: sparkFly 3s linear infinite;
    opacity: 0;
}

.spark-1 { top: 10%; left: 20%; animation-delay: 0s; }
.spark-2 { top: 30%; right: 25%; animation-delay: 0.5s; }
.spark-3 { bottom: 40%; left: 15%; animation-delay: 1s; }
.spark-4 { top: 50%; right: 10%; animation-delay: 1.5s; }
.spark-5 { bottom: 20%; left: 40%; animation-delay: 2s; }

@keyframes sparkFly {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translate(-20px, -30px) scale(1);
    }
    30% {
        opacity: 1;
        transform: translate(30px, -60px) scale(1.2);
    }
    50% {
        opacity: 0.5;
        transform: translate(-40px, -90px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(50px, -120px) scale(0.3);
    }
}

/* Close Button */
.feedback-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #FF6B35;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-close-btn:hover {
    background: #FF6B35;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Header */
.feedback-header {
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.fire-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(
        45deg,
        #FFD700,
        #FFA500,
        #FF6B35,
        #FF4500,
        #FF6B35,
        #FFA500,
        #FFD700
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fireGradient 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    margin-bottom: 10px;
}

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

.feedback-subtitle {
    color: #FFA500;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}

/* Form Section */
.feedback-form-section {
    padding: 20px 40px 30px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
}

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

.form-group label {
    display: block;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.label-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Select Dropdown */
.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #2d2d2d;
    color: white;
}

/* Feedback Type Grid */
.feedback-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.type-option input[type="radio"] {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option input[type="radio"]:checked + .type-card {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.type-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.type-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Temperature Gauge */
.temperature-gauge {
    margin-top: 10px;
}

.temperature-gauge input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
        #4169E1 0%,
        #87CEEB 25%,
        #FFD700 50%,
        #FF6B35 75%,
        #FF0000 100%
    );
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.temperature-gauge input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: white;
    border: 3px solid #FF6B35;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.temp-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: white;
    font-size: 0.9rem;
}

/* Temperature States */
.feedback-modal-content.temp-cold {
    border-color: #4169E1;
    box-shadow:
        0 0 50px rgba(65, 105, 225, 0.3),
        0 0 100px rgba(65, 105, 225, 0.1);
}

.feedback-modal-content.temp-hot {
    border-color: #FF0000;
    box-shadow:
        0 0 50px rgba(255, 0, 0, 0.4),
        0 0 100px rgba(255, 0, 0, 0.2);
    animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FF6B35, #FF4500);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #FF4500, #FF6B35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-fire-left, .btn-fire-right {
    display: inline-block;
    animation: fireWiggle 1s ease-in-out infinite;
}

.btn-fire-right {
    animation-delay: 0.5s;
}

@keyframes fireWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: successBounce 1s ease;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-message h3 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-message p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.success-note {
    color: #FFA500;
    font-style: italic;
}

.btn-done {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(65, 105, 225, 0.4);
}

/* Footer */
.feedback-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.feedback-footer p {
    color: #FFA500;
    font-style: italic;
    font-size: 0.95rem;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .feedback-modal-content {
        margin: 10px;
        border-radius: 15px;
        max-height: 95vh;
        max-width: 95vw;
    }

    .feedback-form-section {
        padding: 20px;
        max-height: calc(95vh - 180px);
    }

    .fire-text {
        font-size: 1.8rem;
    }

    .feedback-type-grid {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        font-size: 1.1rem;
        padding: 15px;
    }
}