/* Apple-Inspired Minimal AI Vet Planner Styles */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#ai-vet-planner {
    width: 100%;
    margin: 0;
    padding: 80px 20px;
    background: #ffffff;
    min-height: 500px;
    box-sizing: border-box;
    position: relative;
}

#ai-vet-title {
    text-align: center;
    margin-bottom: 50px;
}

#ai-vet-title h2 {
    font-size: 48px;
    margin-bottom: 16px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
}

#ai-vet-title p {
    font-size: 21px;
    color: #6e6e73;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
    font-weight: 400;
}

#ai-vet-form {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
}

#ai-vet-form label {
    margin-bottom: 12px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 17px;
}

#ai-vet-form input {
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #1d1d1f;
}

#ai-vet-form input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

#ai-vet-form input::placeholder {
    color: #86868b;
}

#ai-vet-form button {
    padding: 18px 32px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#ai-vet-form button:hover {
    background: #0077ed;
}

#ai-vet-form button:active {
    background: #006edb;
    transform: scale(0.98);
}

#ai-vet-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f5f5f7;
    border: none;
    border-radius: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

#ai-vet-result .protocol {
    line-height: 1.6;
    color: #1d1d1f;
}

#ai-vet-result .error {
    color: #ff3b30;
    font-weight: 500;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 3px solid #ff3b30;
}

#ai-vet-result .success {
    color: #34c759;
    font-weight: 500;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 3px solid #34c759;
}

#ai-vet-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#ai-vet-loader p {
    background: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Minimal Fullscreen Modal - Full Width Content */
#ai-vet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: none;
    z-index: 10000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#ai-vet-modal-content {
    width: 100%;
    min-height: 100vh;
    padding: 80px 0 60px;
    box-sizing: border-box;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ai-vet-modal-content .protocol {
    width: 100%;
    padding: 0 max(24px, calc((100vw - 1200px) / 2));
    box-sizing: border-box;
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
}

#ai-vet-modal-content .protocol h1,
#ai-vet-modal-content .protocol h2,
#ai-vet-modal-content .protocol h3 {
    color: #1d1d1f;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

#ai-vet-modal-content .protocol h1 {
    font-size: 40px;
    margin-top: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #d2d2d7;
}

#ai-vet-modal-content .protocol h2 {
    font-size: 32px;
    margin-top: 64px;
}

#ai-vet-modal-content .protocol h3 {
    font-size: 24px;
    margin-top: 40px;
}

#ai-vet-modal-content .protocol p {
    margin-bottom: 20px;
    color: #1d1d1f;
}

#ai-vet-modal-content .protocol ul,
#ai-vet-modal-content .protocol ol {
    margin-left: 24px;
    margin-bottom: 24px;
}

#ai-vet-modal-content .protocol li {
    margin-bottom: 12px;
    color: #1d1d1f;
}

#ai-vet-modal-content .protocol strong {
    color: #0071e3;
    font-weight: 600;
}

#ai-vet-modal-content .protocol code {
    background: #f5f5f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    color: #0071e3;
}

#ai-vet-modal-content .protocol blockquote {
    border-left: 3px solid #0071e3;
    padding-left: 20px;
    margin-left: 0;
    color: #6e6e73;
    font-style: italic;
}

#ai-vet-modal-content .protocol form {
    margin-top: 20px;
}

#ai-vet-modal-content .protocol textarea {
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #1d1d1f;
    resize: vertical;
}

#ai-vet-modal-content .protocol textarea:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

#ai-vet-modal-content .protocol textarea::placeholder {
    color: #86868b;
}

#ai-vet-modal-content .protocol .feedback-button {
    padding: 18px 32px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#ai-vet-modal-content .protocol .feedback-button:hover {
    background: #0077ed;
}

#ai-vet-modal-content .protocol .feedback-button:active {
    background: #006edb;
    transform: scale(0.98);
}

/* Apple-style Close Button */
#ai-vet-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    color: #86868b;
    background: transparent;
    border: none;
    border-radius: 50%;
    z-index: 10001;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#ai-vet-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

#ai-vet-close:active {
    background: #e8e8ed;
}

/* Responsive Design */
@media (max-width: 1068px) {
    #ai-vet-planner {
        padding: 60px 20px;
    }

    #ai-vet-title h2 {
        font-size: 40px;
    }

    #ai-vet-title p {
        font-size: 19px;
    }

    #ai-vet-modal-content {
        padding: 70px 0 50px;
    }

    #ai-vet-modal-content .protocol {
        padding: 0 32px;
    }

    #ai-vet-modal-content .protocol h1 {
        font-size: 32px;
    }

    #ai-vet-modal-content .protocol h2 {
        font-size: 28px;
        margin-top: 48px;
    }

    #ai-vet-modal-content .protocol h3 {
        font-size: 21px;
    }
}

@media (max-width: 734px) {
    #ai-vet-planner {
        padding: 40px 16px;
    }

    #ai-vet-title h2 {
        font-size: 32px;
    }

    #ai-vet-title p {
        font-size: 17px;
    }

    #ai-vet-form input,
    #ai-vet-form button {
        font-size: 17px;
    }

    #ai-vet-modal-content {
        padding: 60px 0 40px;
    }

    #ai-vet-modal-content .protocol {
        padding: 0 20px;
        font-size: 16px;
    }

    #ai-vet-modal-content .protocol h1 {
        font-size: 28px;
    }

    #ai-vet-modal-content .protocol h2 {
        font-size: 24px;
        margin-top: 40px;
    }

    #ai-vet-modal-content .protocol h3 {
        font-size: 19px;
        margin-top: 32px;
    }

    #ai-vet-close {
        top: 16px;
        right: 16px;
    }
}

/* Print Styles */
@media print {
    #ai-vet-close {
        display: none;
    }

    #ai-vet-modal-content .protocol {
        padding: 0 20px;
    }

    #ai-vet-modal-content .protocol form {
        display: none;
    }
}