/* Import base styles */
@import url('../CSS/HomePage_Pro.css');

/* Injury page specific styles */
.injury-hero {
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.injury-hero {
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 30%, var(--accent-color) 70%);
    overflow: hidden;
}

.injury-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Images/selection_hero.jpg') no-repeat center center/cover;
    opacity: 0.4;
    z-index: 1;
}

.injury-hero h1,
.injury-hero p {
    position: relative;
    z-index: 2; 
}

.body-selector-section {
    padding: 2rem 0 4rem;
}

.selector-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
}

.selector-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .selector-container {
        grid-template-columns: 1fr 1fr;
    }
}

.body-svg {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
    height: 100vh;
}

.body-part {
    fill: #e2e8f0;
    stroke: var(--text-color);
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.body-part:hover {
    fill: #cbd5e1;
}

.body-part.selected {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.selection-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card, .instruction-card {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #F9BC35;
}

.info-card{
    height: 100vh;
}

.info-card h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-card label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-card input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.instruction-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.instruction-card ul {
    list-style: none;
    padding-left: 1rem;
}

.instruction-card li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.instruction-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
}

.alert {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 2rem;
    transition: all 0.3s ease;
}

.alert.selected {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
}

.alert p {
    margin: 0;
}

.cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Active nav link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.cta-button {
    background-color: blue;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10% 0 0 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button.primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.cta-button.primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.quick-start {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.selector-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .selector-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .body-svg,
    .selection-info {
        flex: 1;
    }
}

.body-svg {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #F9BC35;
}

.selection-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.alert.selected {
    background-color: #dbeafe;
    border-color: #bfdbfe;
}

.body-part {
    fill: #e2e8f0;
    stroke: #94a3b8;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.body-part:hover {
    fill: #cbd5e1;
}

.body-part.selected {
    fill: #3b82f6;
    stroke: #2563eb;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #2563eb;
}

.cta-button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.additional-questions {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #F9BC35;
    margin-top: 2rem;
}

.additional-questions h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.additional-questions label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.additional-questions input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.info-card label,
.info-card input,
.instruction-card,
#selectionAlert,
.additional-questions,
.cta-button {
    margin-bottom: 1rem;
}

.error {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}