/* IEPF Frontend Styles */

.iepf-search-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.iepf-search-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /*border: 1px solid #e0e0e0;*/
}

.iepf-search-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.iepf-form-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.iepf-form-row {
    margin-bottom: 20px;
}

/* Two-column layout for desktop */
.iepf-form-row-double {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.iepf-form-half {
    flex: 1;
    min-width: 280px;
}

.iepf-form-group {
    position: relative;
}

.iepf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}

.required {
    color: #dc3232;
    font-weight: bold;
}

.iepf-form-group input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.iepf-form-group input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.iepf-field-help {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.iepf-field-help strong {
    color: #333;
}

.iepf-recaptcha-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
}

.iepf-submit-btn {
    background: #0073aa;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative;
    min-width: 160px;
}

.iepf-submit-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.iepf-submit-btn:active {
    transform: translateY(0);
}

.iepf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.iepf-btn-loader {
    display: none;
}

.iepf-submit-btn.loading .iepf-btn-text {
    display: none;
}

.iepf-submit-btn.loading .iepf-btn-loader {
    display: inline;
}

.iepf-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    animation: slideDown 0.3s ease;
}

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

.iepf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.iepf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.iepf-form-note {
    margin-top: 25px;
    padding: 15px 18px;
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    border-radius: 6px;
}

.iepf-form-note p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.iepf-form-note ul {
    margin: 10px 0 0 20px;
    color: #555;
    font-size: 14px;
}

.iepf-form-note ul li {
    margin-bottom: 5px;
}

/* Results Section */
.iepf-results {
    margin-top: 30px;
}

.iepf-results h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.iepf-loading {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.iepf-loading p {
    font-size: 18px;
    color: #555;
    margin: 0;
}

/* Table with horizontal scroll on ALL devices */
.iepf-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0px;
    margin-bottom: 20px;
}

.iepf-results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 900px;
	    margin-bottom: 0px;
	border: 1px solid #ddd;
}

.iepf-results-table th,
.iepf-results-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.iepf-results-table th {
    background: #f7941e;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.iepf-results-table tbody tr {
    transition: background-color 0.2s ease;
}

.iepf-results-table tbody tr:hover {
    background: #f5f9fc;
}

.iepf-results-table tbody tr:last-child td {
    border-bottom: none;
}

.iepf-results-table td {
    color: #333;
    font-size: 14px;
}

/* Contact Info after results */
.iepf-contact-info {
    margin-top: 25px;
    padding: 10px;
    background: #fef9f5;
    border-left: 4px solid #f7941e;
    border-radius: 6px;
    text-align: left;
}

.iepf-contact-info p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.iepf-contact-info strong {
    color: #0073aa;
    font-weight: 600;
}

.iepf-contact-info a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.iepf-contact-info a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iepf-search-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .iepf-search-form {
        padding: 20px;
    }
    
    .iepf-search-form h3 {
        font-size: 20px;
    }
    
    .iepf-form-description {
        font-size: 13px;
    }
    
    .iepf-field-help {
        font-size: 12px;
    }
    
    .iepf-submit-btn {
        width: 100%;
        padding: 14px;
    }
    
    /* Stack two-column layout on mobile */
    .iepf-form-row-double {
        flex-direction: column;
    }
    
    .iepf-form-half {
        width: 100%;
    }
    
    /* Keep horizontal scroll on mobile - DO NOT change table layout */
    .iepf-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce padding on mobile for better fit */
    .iepf-results-table th,
    .iepf-results-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .iepf-results-table th {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .iepf-recaptcha-wrapper {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
    
    /* Smaller padding on very small screens */
    .iepf-results-table th,
    .iepf-results-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .iepf-results-table th {
        font-size: 12px;
    }
}
