/**
 * iRepair Vprasalnik Styles
 * Version: 1.0.0
 */

.irepair-vprasalnik-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.irepair-header {
    text-align: center;
    margin-bottom: 40px;
}

.irepair-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.irepair-header p {
    color: #4a5568;
    font-size: 1.1rem;
}

.irepair-form-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.irepair-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.irepair-progress-step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #718096;
    position: relative;
    font-size: 1.1rem;
}

.irepair-progress-step.active {
    background: #3182ce;
    color: white;
}

.irepair-progress-step.completed {
    background: #48bb78;
    color: white;
}

.irepair-progress-step.completed::before {
    content: '✓';
    font-size: 20px;
}

.irepair-progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 10px;
}

.irepair-progress-line.completed {
    background: #48bb78;
}

/* Form Steps */
.irepair-step {
    display: none;
}

.irepair-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.irepair-step-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.irepair-step-subtitle {
    color: #718096;
    margin-bottom: 30px;
}

/* Device Grid */
.irepair-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.irepair-device-option {
    padding: 30px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.irepair-device-option img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s;
}

.irepair-device-option span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.irepair-device-option:hover {
    border-color: #3182ce;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(49, 130, 206, 0.2);
}

.irepair-device-option:hover img {
    transform: scale(1.05);
}

.irepair-device-option.selected {
    border-color: #3182ce;
    background: #ebf8ff;
}

.irepair-device-option.selected span {
    color: #3182ce;
}

/* Model Dropdown */
.irepair-model-select {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.irepair-model-select:hover,
.irepair-model-select:focus {
    border-color: #3182ce;
    outline: none;
}

/* Issue Options */
.irepair-issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.irepair-issue-option {
    padding: 25px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.irepair-issue-option:hover {
    border-color: #3182ce;
    transform: translateY(-3px);
}

.irepair-issue-option.selected {
    border-color: #3182ce;
    background: #ebf8ff;
}

.irepair-issue-option h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.irepair-issue-option p {
    color: #718096;
    font-size: 0.9rem;
}

.irepair-issue-price {
    font-weight: 700;
    color: #3182ce;
    margin-top: 8px;
}

/* Urgency Options */
.irepair-urgency-option {
    padding: 25px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    background: white;
}

.irepair-urgency-option:hover {
    border-color: #3182ce;
}

.irepair-urgency-option.selected {
    border-color: #3182ce;
    background: #ebf8ff;
}

.irepair-urgency-option h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.irepair-urgency-option p {
    color: #718096;
}

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

.irepair-form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.irepair-form-group input,
.irepair-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.irepair-form-group input:focus,
.irepair-form-group textarea:focus {
    border-color: #3182ce;
    outline: none;
}

.irepair-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.irepair-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.irepair-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.irepair-checkbox-group input {
    width: 20px;
    height: 20px;
}

/* Buttons */
.irepair-button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.irepair-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.irepair-btn-back {
    background: #e2e8f0;
    color: #4a5568;
}

.irepair-btn-back:hover {
    background: #cbd5e0;
}

.irepair-btn-next {
    background: #3182ce;
    color: white;
}

.irepair-btn-next:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(49, 130, 206, 0.3);
}

.irepair-btn-next:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.irepair-btn-submit {
    background: #48bb78;
    color: white;
}

.irepair-btn-submit:hover {
    background: #38a169;
}

/* Success Screen */
.irepair-success-screen {
    text-align: center;
}

.irepair-success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.irepair-success-screen h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.irepair-success-screen p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.irepair-contact-box {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.irepair-contact-box h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

.irepair-contact-box a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

.irepair-contact-box a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .irepair-header h1 {
        font-size: 1.8rem;
    }

    .irepair-form-card {
        padding: 30px 20px;
    }

    .irepair-step-title {
        font-size: 1.5rem;
    }

    .irepair-device-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .irepair-issue-grid {
        grid-template-columns: 1fr;
    }

    .irepair-form-row {
        grid-template-columns: 1fr;
    }

    .irepair-progress-step {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .irepair-button-group {
        flex-direction: column;
        gap: 10px;
    }

    .irepair-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Auto-detection notification */
.irepair-auto-detected {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
    z-index: 9999;
    display: none;
    font-weight: 600;
}
