/**
 * Frontend registration form styles
 */

.callout {
    padding: 16px !important;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    column-gap: 0.5em;
}

.callout:before {
    content: '';
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --%3E%3Cpath fill='currentColor' d='M11 17h2v-6h-2zm1-8q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m0 13q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8'/%3E%3C/svg%3E");
    min-width: 1.5em;
    min-height: 1.5em;
    background-size: contain;
    opacity: 0.3;
    background-repeat: no-repeat;
}

.amac-artist-registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 5px;
}

.amac-form-section {
    margin-bottom: 30px;
}

.amac-form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.6em;
}

.amac-form-field {
    margin-bottom: 20px;
}

.amac-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.amac-form-field.half {
    width: calc(50% - 20px);
    margin-left: 10px;
    margin-right: 10px;
}

.amac-form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.amac-form-field .required {
    color: #cc0000;
}

.amac-form-field input[type="text"],
.amac-form-field input[type="email"],
.amac-form-field input[type="number"],
.amac-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.amac-form-field input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

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

.amac-form-submit {
    border-top: 1px solid #DDD;
    padding-top: 20px;
    margin-top: -10px;
    margin-bottom: 40px;
}

.amac-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.amac-button:hover {
    background-color: #005177;
}

.amac-form-success {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 20px;
}

.amac-form-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}

#amac-artist-registration-form .amac_event_availability {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: black;
    display: flex;
    flex-direction: column;
    row-gap: 6px;
}

#amac-artist-registration-form .amac_event_availability li {
    display: flex;
    align-items: center;
    column-gap: 2px;
}

#amac-artist-registration-form .amac_event_availability label {
    font-weight: normal;
    margin: 0;
}

#amac-artist-registration-form .amac_event_availability em {
    color: #888;
    font-style: normal;
}

#amac-artist-registration-form .amac_event_availability + .callout {
    margin-top: 20px;
}

@media screen and (max-width: 600px) {
    .amac-form-field.half {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .amac-form-row {
        margin-left: 0;
        margin-right: 0;
    }
}