/* Boat Competition Registration - Frontend Styles */

.bcr-registration-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Multi-Step Progress Indicator */
.bcr-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.bcr-steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.bcr-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bcr-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #666;
    font-weight: bold;
    margin-bottom: 8px;
}

.bcr-step.active .bcr-step-number {
    background: #0073aa;
    color: white;
}

.bcr-step.completed .bcr-step-number {
    background: #00a32a;
    color: white;
}

.bcr-step.completed .bcr-step-number::after {
    content: '✓';
}

.bcr-step-title {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.bcr-step.active .bcr-step-title {
    color: #0073aa;
    font-weight: 600;
}

/* Step Content */
.bcr-step-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bcr-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bcr-section {
    margin-bottom: 40px;
}

.bcr-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.bcr-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: 20px;
    
}

.bcr-form-group {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
}

.bcr-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.bcr-required-mark {
    color: #d63638;
    font-weight: 700;
    margin-left: 3px;
}

.bcr-form-group input[type="text"],
.bcr-form-group input[type="email"],
.bcr-form-group input[type="tel"],
.bcr-form-group input[type="number"],
.bcr-form-group input[type="date"],
.bcr-form-group input[type="password"],
.bcr-form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.bcr-form-group input:focus,
.bcr-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.bcr-form-group input.bcr-input-error,
.bcr-form-group select.bcr-input-error,
.bcr-auth-form input.bcr-input-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638;
}

.bcr-field-error {
    display: block;
    color: #d63638;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 6px;
}

.bcr-choice-error {
    border-left: 3px solid #d63638;
    padding-left: 8px;
}

.bcr-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.bcr-button:disabled,
.bcr-button.bcr-button-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.bcr-button-primary:disabled,
.bcr-button-primary.bcr-button-disabled,
.bcr-button-primary:disabled:hover,
.bcr-button-primary.bcr-button-disabled:hover {
    background: #1c2e5a;
    color: #fff;
}

.bcr-button-secondary:disabled,
.bcr-button-secondary.bcr-button-disabled,
.bcr-button-secondary:disabled:hover,
.bcr-button-secondary.bcr-button-disabled:hover {
    background: #f0f0f1;
    color: #333;
}

.bcr-button-primary {
    background: #1c2e5a;
    color: #fff;
}

.bcr-button-primary:hover {
    background: #005a87;
}

.bcr-button-secondary {
    background: #f0f0f1;
    color: #333;
}

.bcr-button-secondary:hover {
    background: #dcdcde;
}

.bcr-button-success {
    background: #27ae60;
    color: #fff;
}

.bcr-button-success:hover {
    background: #1f8c4b;
}

.bcr-button-danger {
    background: #b32d2e;
    color: #fff;
}

.bcr-button-danger:hover {
    background: #8a2424;
    color: #fff;
}

.bcr-members-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

#bcr-team-members-list {
    margin-top: 20px;
}

.bcr-member-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bcr-form .chk-box{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 15px;
}
.bcr-form .chk-box input[type='checkbox']{
    width: 90px !important;
}

.bcr-member-number {
    flex: 0 0 54px;
    font-weight: 700;
    color: #333;
}

.bcr-member-info {
    flex: 1;
}

.bcr-member-photos,
.bcr-member-photo {
    flex: 0 0 124px;
    margin-right: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.bcr-member-photo-link {
    display: inline-flex;
    line-height: 0;
}

.bcr-member-photo-img,
.bcr-member-table-photo-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d7d7d7;
    background: #fff;
}

.bcr-member-photo-placeholder {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #777;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.bcr-member-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.bcr-member-info p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.bcr-member-actions {
    display: flex;
    gap: 8px;
}

.bcr-member-actions button {
    padding: 6px 12px;
    font-size: 12px;
}

.bcr-form-actions {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Modal Styles */
.bcr-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.bcr-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.bcr-modal-large {
    max-width: 900px;
}

.bcr-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.bcr-modal-close:hover,
.bcr-modal-close:focus {
    color: #000;
}

.bcr-modal h3 {
    margin-top: 0;
    color: #333;
}

.bcr-modal-actions {
    margin-top: 20px;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Message Styles */
#bcr-message {
    margin-bottom: 20px;
}

.bcr-success {
    background: #d1f0d1;
    color: #00a32a;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #00a32a;
}

.bcr-error {
    background: #f8d7da;
    color: #d63638;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

/* My Boats Page */
.bcr-my-boats-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bcr-boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bcr-boat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.bcr-boat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.bcr-boat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bcr-boat-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.bcr-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bcr-status-approved {
    background: #d1f0d1;
    color: #00a32a;
}

.bcr-status-pending {
    background: #fcf3cf;
    color: #dba617;
}

.bcr-status-rejected {
    background: #f8d7da;
    color: #d63638;
}

.bcr-payment-status,
.bcr-payment-pending,
.bcr-payment-paid,
.bcr-payment-unpaid,
.bcr-payment-partial,
.bcr-payment-refunded {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bcr-payment-pending {
    background: #fcf3cf;
    color: #9a6b00;
}

.bcr-payment-paid {
    background: #d1f0d1;
    color: #007a20;
}

.bcr-payment-unpaid {
    background: #f8d7da;
    color: #b32d2e;
}

.bcr-payment-partial {
    background: #dbeafe;
    color: #1d4f91;
}

.bcr-payment-refunded {
    background: #e8e8e8;
    color: #50575e;
}

.bcr-boat-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.bcr-boat-details strong {
    color: #333;
}

.bcr-boat-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bcr-payment-detail-summary {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0 20px;
}

.bcr-payment-detail-summary p {
    margin: 8px 0;
}

/* Photo Preview */
.bcr-photo-preview {
    margin-top: 10px;
    max-width: 200px;
}

.bcr-photo-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Loading Spinner */
.bcr-loading {
    text-align: center;
    padding: 40px;
}

.bcr-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: bcr-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes bcr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bcr-form-row {
        grid-template-columns: 1fr;
    }
    
    .bcr-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .bcr-boats-grid {
        grid-template-columns: 1fr;
    }
}

/* Authentication Forms */
.bcr-auth-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bcr-auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bcr-register-container {
    max-width: 700px;
}

.bcr-auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.bcr-auth-form .bcr-form-group {
    margin-bottom: 20px;
}

.bcr-auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.bcr-auth-form input[type="text"],
.bcr-auth-form input[type="email"],
.bcr-auth-form input[type="password"],
.bcr-auth-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.bcr-auth-form input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.bcr-auth-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.bcr-checkbox {
    display: flex;
    align-items: center;
}

.bcr-checkbox label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin: 0;
}

.bcr-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.bcr-button-full {
    width: 100%;
    text-align: center;
}

.bcr-auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.bcr-auth-links a {
    color: #0073aa;
    text-decoration: none;
}

.bcr-auth-links a:hover {
    text-decoration: underline;
}

.bcr-separator {
    margin: 0 10px;
    color: #ddd;
}

.bcr-reset-form h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.bcr-input-error {
    border-color: #d63638 !important;
}

.bcr-error-message {
    display: block;
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}

.bcr-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bcr-message ul {
    margin: 0;
    padding-left: 20px;
}

/* Account Page */
.bcr-account-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.bcr-account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.bcr-tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.bcr-tab-button:hover {
    color: #0073aa;
}

.bcr-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.bcr-tab-content {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bcr-tab-content.active {
    display: block;
}

.bcr-tab-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

#bcr-account-messages {
    margin-bottom: 20px;
}

/* Responsive Auth Forms */
@media (max-width: 768px) {
    .bcr-auth-container {
        padding: 30px 20px;
    }
    
    .bcr-account-tabs {
        flex-wrap: wrap;
    }
    
    .bcr-tab-button {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .bcr-steps-indicator {
        flex-wrap: wrap;
    }
    
    .bcr-step {
        flex: 1 1 45%;
        margin-bottom: 20px;
    }
}

/* Photo Upload Step */
.bcr-photo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bcr-photo-option {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
}

.bcr-photo-option h4 {
    margin-top: 0;
    color: #0073aa;
}

#bcr-photo-members-list .bcr-member-item {
    cursor: pointer;
    transition: background-color 0.3s;
}

#bcr-photo-members-list .bcr-member-item:hover {
    background-color: #f0f0f1;
}

#bcr-photo-members-list .bcr-member-photo-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

#bcr-photo-members-list .has-photo {
    background: #d1f0d1;
    color: #00a32a;
}

#bcr-photo-members-list .no-photo {
    background: #fcf3cf;
    color: #dba617;
}

/* Payment Info */
.bcr-payment-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.bcr-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.bcr-fee-row:last-child {
    border-bottom: none;
}

.bcr-total-fee {
    font-size: 18px;
    font-weight: bold;
    background: #fff;
    margin: 10px -20px -20px;
    padding: 15px 20px;
    border-top: 2px solid #0073aa;
}

.bcr-total-fee span {
    color: #0073aa;
}

.bcr-payment-methods {
    margin-top: 20px;
}

.bcr-payment-methods h4 {
    margin-bottom: 15px;
    color: #333;
}

/* Registration Summary */
#bcr-registration-summary {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

#bcr-registration-summary h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0073aa;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

#bcr-registration-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

#bcr-registration-summary .summary-row strong {
    color: #333;
}

/* Multi-Step Registration */
.bcr-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.bcr-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.bcr-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bcr-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.bcr-step.active .bcr-step-number {
    background: #0073aa;
    color: white;
}

.bcr-step.completed .bcr-step-number {
    background: #00a32a;
    color: white;
}

.bcr-step-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.bcr-step.active .bcr-step-title {
    color: #0073aa;
    font-weight: 600;
}

.bcr-step-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    margin-bottom: 20px;
}
.bcr-step-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0073aa;
}

.bcr-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.bcr-step-actions button {
    min-width: 150px;
}

.bcr-button-large {
    font-size: 16px;
    padding: 15px 30px;
}

/* Payment Step */
.bcr-payment-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #0073aa;
}

.bcr-summary-table {
    width: 100%;
    margin-top: 15px;
}
.bcr-summary-table tr {
    border-bottom: 1px solid #cfcfcf;
}
.bcr-summary-table td {
    padding: 8px 0;
    border: 0;
}

.bcr-summary-table td.amount {
    text-align: right;
    font-weight: 600;
}

.bcr-summary-table .total-row {
    border-top: 2px solid #0073aa;
    font-size: 18px;
}

.bcr-summary-table .total-row td {
    padding-top: 15px;
    color: #801C1C;
}

.bcr-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bcr-payment-method {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.bcr-payment-method:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,0.1);
}

.bcr-payment-method h5 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.bank-details {
    background: #f2f2f2;
    padding: 15px;
    border-radius: 4px;
}

.bank-details p {
    margin: 5px 0;
    font-size: 14px;
}

.bcr-declaration {
    background: #fcf8e3;
    border-left: 4px solid #DFB628;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.bcr-declaration h4 {
    margin-top: 0;
    color: #801C1C;
}

.bcr-declaration p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.bcr-declaration-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.bcr-declaration-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}

/* Photo Upload Options */
.bcr-photo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bcr-photo-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.bcr-photo-option h4 {
    margin-top: 0;
    color: #0073aa;
}

.bcr-photo-upload-status {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f1;
    border-radius: 4px;
}

.bcr-link {
    color: #0073aa;
    text-decoration: none;
}

.bcr-link:hover {
    text-decoration: underline;
}

/* Responsive Multi-Step */
@media (max-width: 768px) {
    .bcr-steps {
        flex-wrap: wrap;
    }
    
    .bcr-step {
        flex: 1 1 50%;
        margin-bottom: 20px;
    }
    
    .bcr-steps::before {
        display: none;
    }
    
    .bcr-step-actions {
        flex-direction: column;
    }
    
    .bcr-step-actions button {
        width: 100%;
    }
    
    .bcr-payment-methods,
    .bcr-photo-options {
        grid-template-columns: 1fr;
    }

    .bcr-member-item {
        align-items: flex-start;
    }

    .bcr-member-photos,
    .bcr-member-photo {
        margin-right: 10px;
    }
}
