/* Blazor-specific overrides - MINIMAL! */

/* Fix spacing between dots in selectors */
.gtr-choice-selector__stat span {
    margin: 0 4px !important;
}

/* Gallery dots spacing - smaller than selectors */
.gtr-bike-pos span {
    margin: 0 2px !important;
}

/* Fix motorcycle images size to prevent jumping - keep original layout */
.gtr-bike img {
    width: 500px !important;
    height: 375px !important;
    object-fit: contain !important;
}

/* Reduce spacing between equipment text and images */
.gtr-equipment {
    margin-top: -1rem !important;
}

/* Center arrows vertically in circles */
.gtr-choice-selector__link svg {
    position: relative;
    top: -16px;
}

/* Remove Blazor default sidebar/layout for landing page */
.page {
    display: block !important;
}

main {
    margin-left: 0 !important;
    width: 100% !important;
}

.sidebar {
    display: none !important;
}

.landing-content,
.content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Dialog/Modal - uses original .o-dialog class from gotoride.css with small additions */
.o-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.o-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    z-index: 100000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.o-dialog__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.o-dialog__close svg {
    stroke: white;
    width: 24px;
    height: 24px;
}

.o-dialog__title {
    background: linear-gradient(135deg, #330066 0%, #440088 100%);
    color: white;
    padding: 2rem;
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
    border-radius: 15px 15px 0 0;
    font-family: "Proxima Nova Black", sans-serif;
}

.o-dialog__content {
    background: white;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

/* Form styles for modal */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: "Proxima Nova", sans-serif;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Proxima Nova", sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Proxima Nova", sans-serif;
}

.btn-secondary:hover {
    background: #5a6268;
}

.price-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #ff6b35;
}

.price-summary h3 {
    color: #330066;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-family: "Proxima Nova Black", sans-serif;
}

.deposit-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 0;
}

/* Validation - Blazor specific */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: "Proxima Nova", sans-serif;
}

.invalid {
    border-color: #dc3545 !important;
}

.valid.modified:not([type=checkbox]) {
    border-color: #28a745 !important;
}

/* Error UI - Blazor specific */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui .reload {
    color: #330066;
    text-decoration: underline;
}

/* Training Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #330066;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background-color: rgba(255, 255, 255, 0.15);
}

.modal-submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: white;
    color: #330066;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-submit-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Fix для модального окна Bootstrap - делаем текст заголовка видимым */
.modal-header .modal-title,
.modal-header h4 {
    color: #212529 !important;
}

.modal-header p,
.modal-header .text-muted {
    color: #6c757d !important;
}
