:root {
    --shared-brand-primary: #a11d21;
    --shared-brand-primary-dark: #8a1a1c;
    --shared-text-primary: #333;
    --shared-text-muted: #666;
    --shared-border-subtle: #e0e0e0;
}

.shared-hero-banner {
    background: url('https://www.saddlebred.com/application/files/9516/5115/7449/Filly.png') center center / cover no-repeat;
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    position: relative;
}

.shared-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.shared-hero-banner h1,
.shared-hero-banner p {
    position: relative;
    z-index: 1;
}

.shared-hero-banner h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.shared-hero-banner p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.95;
}

.shared-content-container {
    margin: 0 auto;
    padding: 20px;
}

.shared-content-container--narrow {
    max-width: 500px;
}

.shared-content-container--standard {
    max-width: 700px;
}

.shared-content-container--wide {
    max-width: 900px;
}

.shared-intro-text {
    text-align: center;
    margin-bottom: 30px;
    color: var(--shared-text-muted);
}

.shared-intro-text--large {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.shared-form-panel {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 0;
}

.shared-form-title {
    margin-top: 0;
    text-align: center;
    color: var(--shared-text-primary);
}

.shared-form-panel .form-group {
    margin-bottom: 20px;
}

.shared-form-panel .form-group > label,
.shared-form-panel .shared-field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--shared-text-primary);
    text-align: left;
}

.shared-form-panel .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--shared-border-subtle);
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shared-form-panel .form-control:focus {
    outline: none;
    border-color: var(--shared-brand-primary);
    box-shadow: 0 0 0 3px rgba(161, 29, 33, 0.1);
    background: white;
}

.shared-form-panel .form-control::placeholder {
    color: #999;
    font-size: 15px;
}

.shared-form-panel .form-control[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #d0d0d0;
}

.shared-primary-button,
a.shared-primary-button,
a.shared-primary-button:visited {
    display: inline-block;
    background: var(--shared-brand-primary);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
}

.shared-primary-button:hover,
a.shared-primary-button:hover {
    background: var(--shared-brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 29, 33, 0.3);
    color: white;
    text-decoration: none;
}

.shared-primary-button:active {
    transform: translateY(0);
}

.shared-primary-button--block {
    width: 100%;
}

.shared-actions-center {
    text-align: center;
    margin-top: 20px;
}

.shared-actions-panel {
    margin-top: 30px;
    text-align: center;
}

.shared-mt-20 {
    margin-top: 20px;
}

.shared-hidden {
    display: none;
}

.shared-option-grid {
    display: grid;
    gap: 20px;
}

.shared-option-card {
    background: white;
    border: 2px solid var(--shared-border-subtle);
    border-radius: 12px;
    padding: 25px 30px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--shared-text-primary);
    display: block;
}

.shared-option-card:hover {
    border-color: var(--shared-brand-primary);
    box-shadow: 0 4px 16px rgba(161, 29, 33, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--shared-text-primary);
}

.shared-option-card:active {
    transform: translateY(0);
}

.shared-option-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--shared-brand-primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    float: left;
}

.shared-option-content {
    overflow: hidden;
}

.shared-option-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--shared-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.shared-option-description {
    font-size: 14px;
    color: var(--shared-text-muted);
    margin: 0;
    line-height: 1.5;
}

.shared-alert {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: sharedSlideDown 0.3s ease-out;
}

@keyframes sharedSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shared-alert--success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.shared-alert--success::before {
    content: "✓ ";
    font-weight: bold;
    font-size: 18px;
}

.shared-alert--error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.shared-alert--error::before {
    content: "⚠ ";
    font-weight: bold;
    font-size: 18px;
}

.shared-alert--plain::before {
    content: '';
}

.shared-success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: sharedSlideDown 0.3s ease-out;
}

.shared-success-message::before {
    content: "✓ ";
    font-size: 22px;
}

.shared-success-message--celebration::before {
    content: "🎉 ";
}

.shared-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.shared-section-heading {
    grid-column: 1 / -1;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--shared-brand-primary);
    margin: 20px 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--shared-brand-primary);
}

.shared-section-heading:first-child {
    margin-top: 0;
}

.shared-full-width {
    grid-column: 1 / -1;
}

.shared-required {
    color: #dc3545;
}

.shared-password-requirements {
    background: #f0f8ff;
    border-left: 4px solid var(--shared-brand-primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.shared-password-requirements ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.field-validation-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.validation-summary-errors {
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-search-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-search-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.member-search-dialog-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.member-search-dialog-header {
    padding: 20px 30px;
    border-bottom: 2px solid var(--shared-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--shared-brand-primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

.member-search-dialog-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.member-search-dialog-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: opacity 0.3s;
}

.member-search-dialog-close:hover {
    opacity: 0.7;
}

.member-search-dialog-body {
    padding: 30px;
}

.member-matches-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.member-matches-table th,
.member-matches-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--shared-border-subtle);
}

.member-matches-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: var(--shared-text-primary);
}

.member-matches-table tbody tr:hover {
    background: #f9f9f9;
}

.btn-select-member {
    background: var(--shared-brand-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-select-member:hover {
    background: var(--shared-brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 29, 33, 0.3);
}

.member-search-dialog-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--shared-border-subtle);
    text-align: center;
}

.member-search-dialog-footer p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.member-search-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-search-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.member-search-loading-spinner {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--shared-brand-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: sharedSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes sharedSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.selected-member-info {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.selected-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4caf50;
}

.selected-member-header h3 {
    margin: 0;
    color: #2e7d32;
    font-size: 1.3em;
}

.btn-clear-selection {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9em;
}

.btn-clear-selection:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.selected-member-details p {
    margin: 8px 0;
    color: #1b5e20;
    font-size: 15px;
}

.selected-member-details p strong {
    color: #2e7d32;
}

.shared-choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shared-choice-row > label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
}

.shared-choice-row > input[type="radio"],
.shared-choice-row > input[type="checkbox"] {
    margin: 0;
}

.shared-choice-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 768px) {
    .shared-two-column {
        grid-template-columns: 1fr;
    }
}
