/* Fieldset styling */
.ConvoInscriptionFormView fieldset {
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

.ConvoInscriptionFormView fieldset legend {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Hide PhD fieldset initially */
.ConvoInscriptionFormView fieldset.phd {
    display: none;
}

/* Field styling */
.ConvoInscriptionFormView .field {
    margin-bottom: 1rem;
}

.ConvoInscriptionFormView .field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #333;
}

.ConvoInscriptionFormView .field input[type="text"],
.ConvoInscriptionFormView .field input[type="email"],
.ConvoInscriptionFormView .field input[type="number"],
.ConvoInscriptionFormView .field textarea,
.ConvoInscriptionFormView .field select {
    width: 100%;
    max-width: 600px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1em;
}

.ConvoInscriptionFormView .field input:focus,
.ConvoInscriptionFormView .field textarea:focus,
.ConvoInscriptionFormView .field select:focus {
    outline: none;
    border-color: #666;
}

.ConvoInscriptionFormView .field textarea {
    min-height: 100px;
}

/* File upload styling */
.ConvoInscriptionFormView .field .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.ConvoInscriptionFormView .field .button:hover {
    border-color: #666;
    background: #f5f5f5;
    color: #000;
}

.ConvoInscriptionFormView .field input[type="file"] {
    cursor: pointer;
}

/* Date picker styling */
.ConvoInscriptionFormView .DatePicker {
    max-width: 200px;
}

.ConvoInscriptionFormView .ui-datepicker-trigger {
    margin-left: 0.5rem;
    cursor: pointer;
    vertical-align: middle;
}

/* jQuery UI Datepicker styling */
.ui-datepicker {
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ui-datepicker-header {
    padding: 0.5rem;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.ui-datepicker-calendar {
    width: 100%;
    margin-top: 0.5rem;
}

.ui-datepicker-calendar th {
    padding: 0.4rem;
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
}

.ui-datepicker-calendar td {
    padding: 0.2rem;
    text-align: center;
}

.ui-datepicker-calendar td a {
    display: block;
    padding: 0.4rem;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.ui-datepicker-calendar td a:hover,
.ui-datepicker-calendar td a.ui-state-hover {
    background: #f0f0f0;
    color: #000;
}

.ui-datepicker-calendar td a.ui-state-highlight {
    background: #333;
    color: #fff;
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    padding: 0.3rem 0.5rem;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #e5e5e5;
    border-radius: 3px;
}

/* Required field marker */
.ConvoInscriptionFormView .required_mark {
    color: #c00;
    margin-left: 0.2rem;
}

/* Submit button */
.ConvoInscriptionFormView button[type="submit"],
.ConvoInscriptionFormView .buttons button {
    background: #333;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.ConvoInscriptionFormView button[type="submit"]:hover,
.ConvoInscriptionFormView .buttons button:hover {
    background: #000;
}

/* Checkbox styling */
.ConvoInscriptionFormView .field.is_phd_field {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.ConvoInscriptionFormView .field.is_phd_field .field_instance {
    display: flex;
    align-items: center;
}

.ConvoInscriptionFormView .field.is_phd_field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.ConvoInscriptionFormView .field.is_phd_field label {
    margin: 0;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
}

/* Data protection agreement styling */
.ConvoInscriptionFormView fieldset.form_agreement {
    background: #fffaf0;
    border: 2px solid #ddd;
}

.ConvoInscriptionFormView .field.data_protection_agreement_field {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.ConvoInscriptionFormView .field.data_protection_agreement_field .field_instance {
    display: flex;
    align-items: flex-start;
}

.ConvoInscriptionFormView .field.data_protection_agreement_field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.ConvoInscriptionFormView .field.data_protection_agreement_field label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.5;
}

.ConvoInscriptionFormView .field.data_protection_agreement_field label a {
    color: #333;
    text-decoration: underline;
    font-weight: 600;
}

.ConvoInscriptionFormView .field.data_protection_agreement_field label a:hover {
    color: #000;
}
