/* Reset and base styles for embed */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
}

.embed-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.embed-header {
    text-align: center;
    margin-bottom: 30px;
}

.embed-logo {
    height: 60px;
    margin-bottom: 15px;
}

.embed-header h1 {
    font-size: 28px;
    color: #3A3A3A;
    margin-bottom: 8px;
    font-weight: 700;
}

.tagline {
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 0;
}

/* Form Section */
.input-section {
    margin-bottom: 20px;
}

#dogForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #d4cfc5;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: #2c4a3c;
    box-shadow: none;
}

/* Buttons */
button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#submitBtn {
    background: #2c4a3c;
    color: white;
    width: 100%;
}

#submitBtn:hover:not(:disabled) {
    background: #3d6150;
    transform: translateY(-1px);
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.secondary-btn {
    background: #7a8f82;
    color: white;
    border: none;
    width: 100%;
    margin-top: 15px;
}

.secondary-btn:hover {
    background: #8da294;
    transform: translateY(-1px);
}

/* Loader */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.result-card h2 {
    font-size: 24px;
    color: #3A3A3A;
    margin-bottom: 20px;
    text-align: center;
}

.product-name {
    font-size: 26px;
    font-weight: 700;
    color: #3A3A3A;
    margin-bottom: 20px;
    text-align: center;
}

.recommendation-text {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2c4a3c;
}

.recommendation-text p {
    margin-bottom: 10px;
    color: #333;
}

.recommendation-text p:last-child {
    margin-bottom: 0;
}

.product-details {
    background: #FAFAF8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-details p {
    margin-bottom: 12px;
    color: #6B6B6B;
    font-size: 15px;
}

.product-details p:last-child {
    margin-bottom: 0;
}

.product-details strong {
    color: #3A3A3A;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    background: #2c4a3c;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.cta-button:hover {
    background: #3d6150;
    transform: translateY(-1px);
}

/* Error Section */
.error-section {
    animation: fadeIn 0.5s ease;
}

.error-card {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.error-card h3 {
    color: #c84538;
    margin-bottom: 15px;
    font-size: 22px;
}

.error-card p {
    color: #6B6B6B;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Footer */
.embed-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E8E3DB;
}

.embed-footer p {
    font-size: 13px;
    color: #6B6B6B;
}

.embed-footer a {
    color: #2c4a3c;
    text-decoration: none;
}

.embed-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .embed-container {
        padding: 15px;
    }

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

    .tagline {
        font-size: 14px;
    }

    .product-name {
        font-size: 22px;
    }

    button, .cta-button {
        font-size: 16px;
        padding: 14px 24px;
    }
}
