/* Form message styles */
.form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-message-info p {
    margin: 0.5rem 0;
}

.form-message-info .btn {
    margin-top: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* reCAPTCHA badge positioning */
.grecaptcha-badge {
    visibility: hidden;
}

/* Add reCAPTCHA notice to forms */
.contact-form::after {
    content: "This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.";
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

/* Accordion styles for internal page */
.accordion {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.accordion summary {
    padding: 1rem 1.5rem;
    background: var(--white);
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #E0E0E0;
    transition: all 0.3s ease;
    list-style: none;
    position: relative;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "▼";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform 0.3s ease;
    color: #6c757d;
    font-size: 0.9em;
}

.accordion[open] summary::after {
    transform: translateY(-50%) rotate(0deg);
}

.accordion summary:hover {
    background: var(--super-light-gray);
}

.accordion-content {
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid #E0E0E0;
}

.accordion-content h5 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.accordion-content h5:first-child {
    margin-top: 0;
}

.accordion-content ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.accordion-content li {
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* Fee table styles - Responsive scrollable table with zebra stripes */
.fee-table-container {
    margin: 1rem auto;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.fee-table {
    width: auto;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.95rem;
}

.fee-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fee-table td {
    padding: 0.875rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.fee-table td:first-child {
    text-align: center;
}

/* Zebra stripes */
.fee-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.fee-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Hover effect */
.fee-table tbody tr:hover {
    background-color: #e3f2fd !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Price column styling */
.fee-table td:last-child {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.05rem;
}

.fee-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.75rem;
    font-style: italic;
    text-align: left;
    padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fee-table-container {
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .fee-table {
        font-size: 0.9rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 0.75rem 0.6rem;
    }
    
    .fee-table td:last-child {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fee-table {
        font-size: 0.85rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .fee-table th {
        font-size: 0.8rem;
    }
    
    .fee-table td:last-child {
        font-size: 0.95rem;
    }
}

/* Role indicators for process steps */
.step-role {
    display: inline-block;
    background: var(--muted-gray);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.step-role.researcher {
    background: var(--accent-blue);
}

.step-role.ai-lab {
    background: var(--primary-orange);
}

.step-role.consultation {
    background: var(--muted-gray);
}

.step-role.parallel {
    background: var(--muted-gray);
}

/* Requirement list styling - simplified */
.requirement-list {
    margin: 1rem 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--muted-gray);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: #e9ecef;
}

.requirement-icon {
    display: none; /* Hide icons */
}

.requirement-text {
    font-weight: 400;
    color: #495057;
    line-height: 1.5;
}

/* Contact details styling */
.contact-details {
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--muted-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 2rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info strong {
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info span,
.contact-info a {
    color: #495057;
    font-size: 1rem;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Responsive styling */
@media (max-width: 768px) {
    .requirement-item {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .requirement-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .contact-icon {
        margin-right: 0.75rem;
    }
}