/* Userinfo Modal Styles */

.userinfo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    font-family: 'Athena Light', Arial, sans-serif;
}

.userinfo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.userinfo-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #b3a08e;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #b3a08e;
}

.modal-body {
    padding: 25px;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

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

.modal-body h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Athena Light', Arial, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: white;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #b3a08e;
    background: #f9f9f9;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #b3a08e;
    font-weight: 500;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #b3a08e;
    box-shadow: 0 0 0 3px rgba(179, 160, 142, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85rem;
}

/* Contact Method Radios */
.contact-method-choice {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #b3a08e;
    background: #f9f9f9;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #b3a08e;
    font-weight: 600;
}

.radio-label input[type="radio"]:checked {
    border-color: #b3a08e;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Athena Light', Arial, sans-serif;
}

.btn-primary {
    background: #b3a08e;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #a58877;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 160, 142, 0.3);
}

.btn-secondary {
    background: #e8e4dc;
    color: #333;
}

.btn-secondary:hover {
    background: #ddd8d0;
}

/* Role Options */
.role-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.role-options-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Role Options Grid (2x2) */
.role-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Fabricator Question Grid (1x2) */
.fabricator-question-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Radio Label Block Style (for grid layouts) */
.radio-label-block {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.radio-label-block:hover {
    border-color: #b3a08e;
    background: #f9f9f9;
}

.radio-label-block input[type="radio"] {
    cursor: pointer;
    accent-color: #b3a08e;
}

.radio-label-block input[type="radio"]:checked + span {
    color: #b3a08e;
    font-weight: 600;
}

.radio-label-block span {
    font-size: 0.95rem;
    color: #333;
}

.role-card {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.role-card:hover {
    border-color: #b3a08e;
    box-shadow: 0 4px 12px rgba(179, 160, 142, 0.2);
}

.role-card.selected {
    border-color: #b3a08e;
    background: #faf8f5;
    box-shadow: 0 4px 12px rgba(179, 160, 142, 0.3);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.role-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.role-discount {
    font-size: 0.85rem;
    color: #b3a08e;
    font-weight: 500;
}

/* Price Summary */
.quote-summary {
    background: white;
}

.price-breakdown {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row span:first-child {
    color: #666;
}

.price-row span:last-child {
    font-weight: 600;
    color: #333;
}

.price-row.savings {
    color: #28a745;
}

.price-row.savings span:last-child {
    color: #28a745;
    font-size: 1.1rem;
}

.price-row.final {
    background: #f0ebe6;
    padding: 15px;
    margin: 0 -20px -20px -20px;
    border-radius: 0 0 8px 8px;
}

.price-row.final span:first-child {
    color: #333;
    font-weight: 700;
}

.price-row.final span:last-child {
    font-size: 1.5rem;
    color: #b3a08e;
}

/* Floating Clear Session Button */
.floating-clear-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #b3a08e;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9900;
    display: none;
    align-items: center;
    gap: 8px;
}

.floating-clear-btn:hover {
    background: #9d8b7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.floating-clear-btn.visible {
    display: flex;
}

.floating-clear-btn::before {
    content: '↻';
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .userinfo-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }

    .role-options {
        grid-template-columns: 1fr;
    }

    .role-options-grid {
        grid-template-columns: 1fr;
    }

    .fabricator-question-grid {
        grid-template-columns: 1fr;
    }

    .contact-method-choice {
        flex-direction: column;
    }

    .radio-label {
        justify-content: center;
    }

    .radio-label-block {
        justify-content: center;
    }
}
