#ozel-ap-form {
    margin: 30px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#ozel-ap-form h3 {
    margin: 0 0 20px 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.01em;
}

#ozel-ap-form h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.01em;
}

/* Month Navigation */
#ozel-ap-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
}

#ozel-ap-month-nav button {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#ozel-ap-month-nav button:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

#ozel-ap-month-nav button[disabled] {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #f3f4f6;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

#ozel-ap-month-nav > span {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Weekday Headers */
.ozel-ap-week-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 10px;
    padding: 0 4px;
}

.ozel-ap-week-header {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calendar Grid */
#ozel-ap-calendar {
    display: block; /* We handle layout with internal grid now */
    margin-bottom: 24px;
}

#ozel-ap-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 0 4px;
}

.ozel-ap-day-spacer {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.ozel-ap-day-btn {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    border: 1px solid transparent;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    padding: 0;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ozel-ap-day-btn:hover:not(.disabled) {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}

.ozel-ap-day-btn.selected {
    background: #4f46e5;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.ozel-ap-day-btn.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    opacity: 0.45;
    cursor: not-allowed;
}

/* Slots Wrapper */
#ozel-ap-slots-wrapper {
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}

#ozel-ap-slots-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
    color: #111827;
}

#ozel-ap-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
}

.ozel-ap-slot-btn {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border-radius: 8px;
    font-family: inherit;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ozel-ap-slot-btn:hover:not(.disabled) {
    border-color: #9ca3af;
    color: #111827;
    background: #f9fafb;
}

.ozel-ap-slot-btn.selected {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.ozel-ap-slot-btn.disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
    box-shadow: none;
}

/* Fields & Form Section */
#ozel-ap-fields {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    animation: fadeIn 0.3s ease-out;
}

.ozel-ap-field {
    margin-bottom: 16px;
}

.ozel-ap-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
}

.ozel-ap-field input,
.ozel-ap-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ozel-ap-field input::placeholder,
.ozel-ap-field textarea::placeholder {
    color: #9ca3af;
}

.ozel-ap-field input:focus,
.ozel-ap-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.ozel-ap-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* Helper Elements */
#ozel-ap-loading {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#ozel-ap-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

#ozel-ap-date-error,
#ozel-ap-slot-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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