/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    color: #2c3e50;
}

/* Header Styles */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    font-weight: 900;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #8066ea 0%, #a24b4b 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Search Card */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #8066ea 0%, #a24b4b 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Button Loading State */
.btn .loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.loading .button-content {
    display: none;
}

.btn.loading .loading-spinner {
    display: flex;
}

.btn.loading {
    background: #4a5568;
    cursor: wait;
}

.btn.loading:hover {
    background: #4a5568;
    transform: none;
    box-shadow: none;
}

/* Loading Animation */
.loading {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.result-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.result-container.show {
    opacity: 1;
    transform: translateY(0);
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.alert-warning {
    background: rgba(246, 173, 85, 0.1);
    color: #c05621;
    border: 1px solid rgba(246, 173, 85, 0.2);
}

.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Footer Styles */
footer {
    background-color: #502c36;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-section p {
    margin: 10px 0;
    color: #ecf0f1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section i {
    margin-right: 10px;
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo {
        flex-direction: column;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }
}

/* Warranty Card Styles */
.warranty-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px 0;
}

.warranty-header {
    color: #2c5282;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.warranty-section {
    margin-bottom: 20px;
}

.warranty-section-title {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.warranty-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.warranty-info-item {
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.warranty-info-item strong {
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.warranty-info-item span {
    color: #2d3748;
    font-size: 1.1em;
}

.warranty-status {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.warranty-status.expired {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.warranty-notes {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    padding: 18px 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.warranty-notes .warranty-section-title {
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.15em;
    font-weight: 700;
}

.warranty-notes .warranty-section-title i {
    color: #3b82f6;
    font-size: 1.1em;
}

.warranty-notes-content {
    margin-top: 8px;
}

.warranty-notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-notes-list li {
    padding: 10px 0;
    padding-left: 32px;
    position: relative;
    line-height: 1.7;
    color: #334155;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
}

.warranty-notes-list li:hover {
    background: rgba(255, 255, 255, 0.5);
    padding-left: 36px;
    border-radius: 6px;
}

.warranty-notes-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.warranty-notes-list li i.fa-check-circle {
    position: absolute;
    left: 0;
    top: 10px;
    color: #10b981;
    font-size: 1em;
    transition: transform 0.2s ease;
}

.warranty-notes-list li:hover i.fa-check-circle {
    transform: scale(1.1);
}

.warranty-notes-list li strong {
    color: #1e40af;
    font-weight: 600;
    display: inline-block;
    margin-right: 4px;
}

.text-success {
    color: #38a169;
    font-weight: 600;
}

.text-danger {
    color: #e53e3e;
    font-weight: 600;
}

.clinic-info {
    background: #ebf8ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.teeth-info {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

/* Improve Form Validation Feedback */
.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

.form-control.is-valid {
    border-color: #38a169;
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve Accessibility */
.btn:focus,
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.btn:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    box-shadow: none;
}

.btn:focus-visible,
input:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
} 