/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #2c3e5a;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo-subtitle {
    font-size: 14px;
    color: #C63946;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #C63946;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

/* Main Content */
.main {
    padding: 40px 0;
}

.page-header {
    text-align: left;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: #2c3e5a;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

#cardNumber {
    max-width: 160px;
}
#expiryDate {
    max-width: 65px;
}
#cvv {
    max-width: 65px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px !important;
    color: #2c3e5a;
    margin-bottom: 20px;
    font-weight: 600 !important;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e5a;
    font-weight: 500;
}

.form-label.required::after {
    content: '*';
    color: #C63946;
    margin-left: 4px;
}

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

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

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.price-info {
    margin-top: 15px;
    color: #666;
}

.price-info strong {
    color: #2c3e5a;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.location-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.location-card:hover {
    border-color: #2c3e5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-card.active {
    border-color: #2c3e5a;
    background-color: #f8f9fb;
}

.location-card.disabled {
    opacity: 0.5;
}

.location-image {
    height: 100px;
    background: #e0e0e0;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.slicica {
    width: 100%;
    height: 100%;
}

.location-info {
    padding: 12px;
}

.location-info h3 {
    font-size: 14px;
    color: #2c3e5a;
    margin-bottom: 5px;
}

.location-info p {
    font-size: 12px;
    color: #666;
}

.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

/* Calendar */
.date-picker {
    display: flex;
    gap: 30px;
}

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

.calendar-nav {
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e5a;
    cursor: pointer;
    padding: 5px 10px;
    transition: background 0.3s;
    border-radius: 5px;
}

.calendar-nav:hover {
    background: #f0f0f0;
}

.calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e5a;
}

.calendar {
    flex: 1;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.calendar-days span {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-dates .date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.calendar-dates .date:hover {
    background: #f0f0f0;
}

.calendar-dates .date.active {
    background: #2c3e5a;
    color: white;
    font-weight: 600;
}

/* Time Slots */
.time-slots {
    flex: 1;
}

.time-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e5a;
}

.time-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
	max-height: 260px;
    overflow: auto;
}


.time-buttons-spinner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.spinner {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: #ffffff; /* Red color */
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

/* Create the vertical bar of the cross */
.spinner::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 23px;
  width: 4px;
  height: 20px;
  background-color: #ff0000;
}

/* Create the horizontal bar of the cross */
.spinner::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 15px;
  width: 20px;
  height: 4px;
  background-color: #ff0000;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(255, 0, 0, 0); /* Expanding pulse ring */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.time-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    background-color: transparent !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
	color: black;
}

.time-btn:hover {
    border-color: #2c3e5a !important;
    background: #f8f9fb !important;
	color: black;
}

.time-btn.active {
    border-color: #2c3e5a !important;
    background: #2c3e5a !important;
    color: white;
}

.info-text {
    font-size: 13px;
    color: #666;
}

/* Form Checkbox */
.form-checkbox {
    display: flex;
    align-items: start;
    gap: 10px;
    margin: 15px 0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #C63946;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: #000;
    cursor: pointer;
    padding-top: 2px;
}

.form-checkbox small {
    font-size: 12px;
    color: #999;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    gap: 12px;
}

.payment-option input[type="radio"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #C63946;
    cursor: pointer;
}

.payment-label {
    flex: 1;
    cursor: pointer;
}

.payment-label span {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e5a;
}

.payment-cards {
    display: block;
	margin: 25px 0 0 0;
    align-items: center;
}

.payment-cards img {
    height: 37px;
}

.form-input-inline {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 178px;
}

/* Summary Card */
.summary-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-title {
    font-size: 20px !important;
    color: #2c3e5a;
    margin-bottom: 20px;
    font-weight: 600 !important;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-label {
    color: #666;
    font-size: 14px;
}

.summary-value {
    color: #2c3e5a;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

.summary-price {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fb;
    border-radius: 8px;
}

.summary-price .summary-label {
    font-weight: 600;
    color: #2c3e5a;
    font-size: 16px;
}

.summary-price .summary-value {
    font-weight: 700;
    color: #2c3e5a;
    font-size: 18px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary {
    background: #C63946;
    color: white;
}

.btn-primary:hover {
    background: #a82f3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 57, 70, 0.3);
}

.btn-secondary {
    background: #2c3e5a;
    color: white;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background: #1f2d42;
}

/* Doctors Image */
.doctors-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.placeholder-doctors {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Success Card */
.success-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none; /* Hidden by default, show with JavaScript */
}

.success-card.show {
    display: block;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 24px;
    color: #2c3e5a;
    margin-bottom: 15px;
}

.success-text {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.success-phone {
    margin: 20px 0;
    font-size: 16px;
}

.success-phone strong {
    color: #C63946;
}

.success-actions {
    margin-top: 25px;
}

/* Footer */
.footer {
    background: #2c3e5a;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-copyright {
    font-size: 14px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .date-picker {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
    }

    .form-section {
        padding: 20px;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-buttons {
        grid-template-columns: 1fr;
    }

    .calendar-dates {
        gap: 5px;
    }

    .summary-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card {
        display: flex;
        gap: 15px;
    }

    .location-image {
        flex-shrink: 0;
        width: 100px;
        height: auto;
    }

    .calendar-days span,
    .calendar-dates .date {
        font-size: 12px;
    }

    .form-section {
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
    }
}

label.error {
    color: #a94442;
}
input.error {
    border: 1px solid #a94442;
}

.select2-results__option.loading-results {
    position: relative;
    padding-left: 30px; /* Space for the spinner */
}

.select2-results__option.loading-results:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.napomena-small{
	font-size: 12px;
}