/* Modern Certificate Search Styles */
#custom-search-form2 {
    background: #6495ed;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

#custom-search-form2 input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

#custom-search-form2 input[type="text"]:focus {
    outline: none;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#custom-search-form2 input[type="submit"] {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    font-size: 23px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#custom-search-form2 input[type="submit"]:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Success and Error Messages */
.success-message {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #0a5f3e;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Certificate Card */
.certificate-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Field Rows */
.field-row {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    gap: 15px;
}

.field-row:last-child {
    margin-bottom: 0;
}

.field-row-textarea {
    flex-direction: column;
    align-items: stretch;
}

.field-label {
    font-weight: 600;
    color: #495057;
    min-width: 150px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.field-value {
    flex: 1;
    color: #212529;
    font-size: 15px;
    line-height: 1.6;
}

/* Textarea Content */
.textarea-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.textarea-content p {
    margin: 0 0 10px 0;
}

.textarea-content p:last-child {
    margin-bottom: 0;
}

/* Certificate Image */
.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-weight: 600;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .field-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .field-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    #custom-search-form2 {
        padding: 20px;
    }
    
    .certificate-card {
        padding: 20px;
    }
    
    .textarea-content {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    #custom-search-form2 {
        padding: 15px;
    }
    
    .certificate-card {
        padding: 15px;
    }
    
    .field-label {
        font-size: 13px;
    }
    
    .field-value {
        font-size: 14px;
    }
}