.breadcrumbs {
    font-size: 13px;
    padding: 20px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: black;
}

.breadcrumbs span {
    color: #999;
}

.breadcrumbs-razdelitel {
    margin: 0 5px;
}

@media (min-width: 768px) {
    .breadcrumbs {
        font-size: 15px;
        max-width: 1400px;
        margin: auto;
        padding: 20px 40px 0 40px;
    }
}

.appointment-container {
    background:#fff;
    padding: 60px 20px;
    min-height: 500px;
}

.appointment-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #f2f2f2;
    border-radius: 8px;
    padding: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.appointment-title {
    text-align: center;
    color: #404040;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
}

.progress-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    border: 3px solid #d1d5db;
    position: relative;
    z-index: 2;
}

.progress-step.active .progress-circle {
    background: var(--accent);
    border-color: var(--accent);
}

.progress-step.completed .progress-circle {
    background: var(--accent);
    border-color: var(--accent);
}

.progress-step.completed .progress-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;      /* настраиваем размер */
    height: 6px;      /* настраиваем размер */
    transform: translate(-50%, -60%) rotate(-45deg);
    border-left: 2px solid white;   /* строго 1px */
    border-bottom: 2px solid white; /* строго 1px */
}

.progress-line {
    width: 200px;
    height: 3px;
    background: #d1d5db;
    position: relative;
}

.progress-line.active {
    background: #04040;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    color: #404040;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 500;
}

.step-description {
    text-align: center;
    color: #404040;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-note {
    color: #404040;
    font-size: 14px;
    margin:0 auto 20px;
    max-width: 700px;
}

/* Form Elements */
.form-group {
    max-width: 700px;
    margin: 0 auto 20px;
}

.form-label {
    display: block;
    color:  #404040;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid  #404040;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color:  #404040;
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-step[data-step="2"] .form-group {
    margin-left: 0;
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: #f3f4f6;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Custom red radio buttons */
.radio-label input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    outline: none;
}

.radio-label input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 0.2s;
}

.radio-label input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}


.radio-label span {
    color: #374151;
    font-size: 15px;
}

/* Radio Inline */
.radio-group {
    display: flex;
    gap: 30px;
}


/* Services Info */
.services-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.info-title {
    color: #404040;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-text {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Custom Dropdown */
.select-wrapper {
    position: relative;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-list.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #4a7fb8;
    color: white;
}

.dropdown-item.hidden {
    display: none;
}

/* Calendar */
.calendar-container {
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-calendar-nav {
    background: white;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-calendar-nav:hover {
    background-color: #f3f4f6;
}

.nav-text {
    color: #374151;
    font-size: 14px;
}

.dates-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.date-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-header {
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 4px;
}

.date-number {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a5f;
    display: block;
}

.date-day {
    font-size: 14px;
    color: #6b7280;
}

.time-slot {
    padding: 12px;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.time-slot.selected {
    background: var(--primary) !important;
    color: white !important;
}

/* Убрать webkit стили на мобильных */
.time-slot {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.time-slot:hover:not(:disabled) {
    background: #2d4a6f;
}

.time-slot.selected {
    background: var(--primary);
}

.time-slot:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 20px;
    justify-items: stretch;

}

.form-row .form-col {
    width: 100%;
}

.form-row .form-input {
    width: 100%;
}

.form-col {
    margin-bottom: 0;
}

.diagnostic-disclaimer {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.disclaimer-title {
    color: #404040;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.disclaimer-text {
    color: #404040;
    margin-bottom: 8px;
    line-height: 1.5;
}

.disclaimer-note {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    color: #404040;
    line-height: 1.6;
}

.checkbox-text small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.form-note-small {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.link {
    color: var(--primary);
    text-decoration: none;
}

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

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--gradient2);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-link {
    background: transparent;
    color: #404040;
    text-decoration: none;
    padding: 12px 20px;
}

.btn-link:hover {
    color: var(--gradient2);
}

/* Thank You */
.thank-you-step {
    padding: 60px 20px;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.thank-you-title {
    color: #1e3a5f;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.thank-you-text {
    color: #374151;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.thank-you-reference {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}
.date-line {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a5f;
    display: block;
}

.date-day {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.form-row .form-input {
    min-width: 300px ;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .appointment-wrapper {
        padding: 30px 20px;
    }

    .appointment-title {
        font-size: 28px;
    }

    .progress-line {
        width: 60px;
    }

    .service-grid,
    .form-row,
    .dates-container {
        grid-template-columns: 1fr;

    }

    .form-row .form-group,
    .form-row .form-col {
        width: 100%;
    }


    .calendar-container {
        display: flex;
        flex-direction: column;
    }

    .calendar-container .dates-container {
        order: 1;
    }

    .calendar-container .calendar-header {
        order: 2;
        margin-top: 20px;
        margin-bottom: 0;

        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }


}
