#module-crd_appointments-generateappointment,
#module-crd_appointments-generateappointment #wrapper,
#module-crd_appointments-generateappointment #content-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
}

#module-crd_appointments-generateappointment #wrapper {
    min-height: 100vh;
}

#appointments {
    color: #1e293b;
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#appointments .appointments-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

#appointments .appointments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

#appointments .appointments-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 59, 92, 0.1);
    overflow: hidden;
}

#appointments .appointments-card__header {
    background: #003b5c;
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
}

#appointments .appointments-card__body {
    padding: 20px;
}

#appointments .appointments-form__group {
    margin-bottom: 14px;
}

#appointments .appointments-form__group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: left;
}

#appointments .appointments-form__group input[type="text"],
#appointments .appointments-form__group input[type="email"],
#appointments .appointments-form__group input[type="tel"],
#appointments .appointments-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s;
}

#appointments .appointments-form__group input:focus,
#appointments .appointments-select:focus {
    outline: none;
    border-color: #0077a8;
    background: #ffffff;
}

#appointments .appointments-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 18px 0;
}

#appointments .appointments-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

#appointments .appointments-radio-option {
    flex: 1;
}

#appointments .appointments-radio-option input {
    display: none;
}

#appointments .appointments-radio-option label {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    color: #1e293b;
}

#appointments .appointments-radio-option input:checked + label {
    background: #e8f4f8;
    border-color: #003b5c;
    color: #003b5c;
}

#appointments .appointments-note {
    margin-top: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

#appointments .appointments-backside {
    margin: 12px 0;
    text-align: center;
}

#appointments .appointments-backside img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 59, 92, 0.15);
}

#appointments .appointments-backside.is-hidden {
    display: none;
}
#appointments .appointment-backside-custom.is-hidden {
    display: none;
}

#appointments .appointment-backside-custom {
    margin-top: 14px;
}

#appointments .appointments-note a {
    color: #0077a8;
    text-decoration: none;
}

#appointments .appointments-price {
    margin-top: 16px;
    padding: 14px;
    background: #e8f4f8;
    border-radius: 8px;
    border: 1px solid #b8d9e8;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
}

#appointments .appointments-price__title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #003b5c;
    margin-bottom: 8px;
}

#appointments .appointments-price__line--accent {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #b8d9e8;
}

#appointments .appointments-section {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

#appointments .appointments-section__title {
    font-weight: 600;
    font-size: 13px;
    color: #003b5c;
    margin-bottom: 12px;
}

#appointments .appointments-section__hint {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 16px;
}

#appointments .appointments-validation {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

#appointments .appointments-validation.is-visible {
    display: block;
}

#appointments .appointments-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
}

#appointments .appointments-errors ul {
    margin: 0;
    padding-left: 18px;
}

#appointments .appointments-submit {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #003b5c;
    color: #ffffff;
}

#appointments .appointments-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#appointments .appointments-submit:hover:enabled {
    background: #004a73;
}

#appointments .appointments-preview {
    padding: 30px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    justify-content: center;
}

#appointments .appointments-preview__card {
    width: 220px;
    height: 340px;
    background: #ffffff;
    color: #003b5c;
    padding: 18px 16px;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 15px 50px rgba(0, 59, 92, 0.3);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

#appointments .appointments-preview__line {
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 1px;
}

#appointments .appointments-preview__line--strong {
    font-weight: bold;
}

#appointments .appointments-preview__header {
    font-size: 10px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 4px;
}

#appointments .appointments-preview__table {
    display: flex;
    font-size: 10px;
    font-weight: normal;
    margin-bottom: 4px;
    gap: 4px;
}

#appointments .appointments-preview__table span {
    flex: 1;
    text-align: left;
}

#appointments .appointments-preview__table span:nth-child(2),
#appointments .appointments-preview__row span:nth-child(2) {
    flex: 1.4;
}

#appointments .appointments-preview__row {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
}

#appointments .appointments-preview__row span {
    flex: 1;
    height: 16px;
    border-bottom: 1.5px solid #003b5c;
}

#appointments .appointments-preview__footer {
    font-size: 9px;
    line-height: 1.4;
    margin-top: auto;
}

#appointments .appointments-confirmation {
    text-align: center;
    padding: 40px 20px;
}

#appointments .appointments-confirmation__title {
    font-size: 22px;
    font-weight: 500;
    color: #003b5c;
}

@media (max-width: 800px) {
    #appointments .appointments-grid {
        grid-template-columns: 1fr;
    }
}
