/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 153, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 153, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-circles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.c1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.c2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.c3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9900, #ffcc00);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 10px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.step.active {
    background: #ff9900;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}

.step.completed {
    background: rgba(255, 153, 0, 0.3);
    color: #fff;
}

.step::after {
    content: attr(data-step);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Fixed Price Widget */
#fixed-summary {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.price-widget {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(255, 153, 0, 0.1); }
    50% { box-shadow: 0 5px 25px rgba(255, 153, 0, 0.3); }
}

.price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.price-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff9900;
    display: block;
    margin-top: 5px;
}

/* Header */
.logo-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.logo-text {
    width: 80px;
    height: 80px;
    background: #ff9900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    position: relative;
    z-index: 1;
    border: 3px solid #fff;
}

.futuristic-title {
    margin-bottom: 10px;
}

.title-text {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.title-subtext {
    display: block;
    font-size: 16px;
    color: #ff9900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.typing-text {
    display: inline-block;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.welcome-card h2 {
    color: #ff9900;
    margin-bottom: 15px;
    font-size: 24px;
}

.welcome-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.highlight {
    color: #ff9900;
    font-weight: bold;
}

.welcome-instructions {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.welcome-instructions ul {
    margin-left: 20px;
    margin-top: 10px;
}

.welcome-instructions li {
    margin-bottom: 5px;
}

/* Form Steps */
.form-step {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
.futuristic-form {
    margin-top: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.1);
}

.form-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header label {
    font-size: 18px;
    font-weight: bold;
    color: #ff9900;
    display: block;
}

.form-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

/* Input Fields */
.glow-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.glow-input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

.glow-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.number-input {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 5px;
}

/* Select Fields */
.glow-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff9900' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glow-select:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

.glow-select option {
    background: #1a1a1a;
    color: #fff;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: rgba(255, 153, 0, 0.1);
}

.checkbox-container {
    position: relative;
    margin-right: 10px;
}

.checkbox-container input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: #ff9900;
    border-color: #ff9900;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    flex: 1;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.high-priority-group {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.priority-text {
    font-weight: bold;
    color: #ff9900;
    display: block;
    margin-bottom: 2px;
}

.priority-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 153, 0, 0.1);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #ff9900;
}

.radio-option label {
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

/* Sub-options */
.sub-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Divider */
.form-section-divider {
    position: relative;
    margin: 20px 0;
}

.divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.nav-btn i {
    font-size: 12px;
}

.prev-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.prev-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.next-btn {
    background: #ff9900;
    color: #000;
}

.next-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
}

.finish-btn {
    background: #00cc66;
    color: #000;
}

.finish-btn:hover {
    background: #00ff80;
    transform: translateY(-2px);
}

.cancel-btn {
    background: rgba(255, 51, 51, 0.8);
    color: #fff;
}

.cancel-btn:hover {
    background: rgba(255, 51, 51, 1);
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Results Area */
.result-area {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header h3 {
    color: #ff9900;
    font-size: 24px;
}

/* Logic Notes */
.logic-notes {
    margin: 25px 0;
}

.logic-note {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff9900;
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logic-note.info {
    border-left-color: #3498db;
}

.logic-note.warning {
    border-left-color: #f1c40f;
}

.logic-note.danger {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Final Price */
.final-price-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 153, 0, 0.3);
}

.final-price-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.final-price {
    font-size: 48px;
    font-weight: bold;
    color: #ff9900;
    margin: 0;
}

#total-price {
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.result-disclaimer {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 20px 0;
    font-style: italic;
}

/* Contact Form */
.contact-form {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header {
    text-align: center;
    margin-bottom: 25px;
}

.contact-header h4 {
    color: #ff9900;
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-half {
    flex: 1;
}

.form-group-full {
    width: 100%;
    margin-bottom: 15px;
}

.form-group-full label,
.form-group-half label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.send-btn,
.print-btn,
.new-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.send-btn {
    background: #ff9900;
    color: #000;
}

.send-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
}

.print-btn {
    background: #3498db;
    color: #fff;
}

.print-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.new-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.new-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Form Status */
.form-status {
    margin-top: 20px;
    padding: 15px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.form-status p {
    color: #2ecc71;
    margin: 0;
}

/* Footer */
.futuristic-footer {
    margin-top: 50px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 153, 0, 0.2);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 18px;
    font-weight: bold;
    color: #ff9900;
}

.footer-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info p {
    margin: 5px 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ff9900;
    color: #000;
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .progress-steps {
        display: none;
    }
    
    .price-widget {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px auto;
        width: 90%;
    }
    
    .futuristic-title .title-text {
        font-size: 24px;
    }
    
    .futuristic-title .title-subtext {
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .send-btn,
    .print-btn,
    .new-btn {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .final-price {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .welcome-card {
        padding: 20px;
    }
    
    .glass-card {
        padding: 15px;
    }
    
    .final-price {
        font-size: 28px;
    }
}

/* Animation for selected elements */
.selected {
    animation: selectPulse 0.3s ease;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 153, 0, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 153, 0, 0.7);
}