/* General Styles */
#cancer-risk-form {
    font-family: Arial, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#cancer-risk-form h1 {
    font-size: 36px;
    line-height: 48px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

#cancer-risk-form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-align: center; /* Center the headlines */
}

#cancer-risk-form p {
    font-size: 18px;
    line-height: 24px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

#cancer-risk-form form {
    margin-bottom: 20px;
}

#cancer-risk-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
    text-align: left; /* Align labels to the left */
}

#cancer-risk-form input[type="text"],
#cancer-risk-form input[type="number"],
#cancer-risk-form input[type="email"] {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: left; /* Align text inside inputs to the left */
}

#cancer-risk-form button,
#result .button {
    background: linear-gradient(135deg, #C0346B, #ff80ab);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
}

#cancer-risk-form button:hover,
#result .button:hover {
    background: linear-gradient(135deg, #ff80ab, #C0346B);
}

.error {
    border-color: red;
}

#result {
    text-align: left;
}

#result h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-align: center; /* Center the result headlines */
}

#result p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

#result .button {
    display: inline-block;
    margin-top: 20px;
}

/* Progress bar styles */
.progress-bar {
    position: relative;
    height: 10px;
    background: #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar div {
    height: 100%;
    width: 0;
    background: #C0346B;
    transition: width 0.3s;
}

/* Radio buttons and checkbox */
#cancer-risk-form .radio-group,
#cancer-risk-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#cancer-risk-form .radio-group input[type="radio"],
#cancer-risk-form .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

#cancer-risk-form .checkbox-group label {
    font-size: 14px;
    margin-bottom: 0;
}

#cancer-risk-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#cancer-risk-form .form-row label {
    text-align: left;
}

#cancer-risk-form .form-row input {
    text-align: left;
}

/* Disclaimer Styles */
#disclaimer {
    border: 1px solid #C0346B;
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    text-align: center;
}

#personal-data-note {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    text-align: center;
}
