.cpcg-certificate-form-wrapper,
.cpcg-verify-wrapper {
    max-width: 500px;
    margin: 3em auto;
    padding: 2em 2.5em;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10);
    position: relative;
}

.cpcg-certificate-form-wrapper::before,
.cpcg-verify-wrapper::before {
    display: none;
}

.form-title {
    display: none;
}

.form-description {
    display: none;
}

.cpcg-form,
.cpcg-verify-form {
    background: none;
    padding: 0;
    border: none;
}

.form-group {
    margin-bottom: 1.5em;
}

.cpcg-form label,
.cpcg-verify-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.cpcg-form input[type="text"],
.cpcg-form input[type="date"],
.cpcg-form input[type="number"],
.cpcg-verify-form input[type="text"] {
    width: 100%;
    padding: 0.9em 1em;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background-color: #fff;
    color: #2c3e50;
    height: 44px;
}

.cpcg-form input[type="text"]::placeholder,
.cpcg-form input[type="date"]::placeholder,
.cpcg-form input[type="number"]::placeholder,
.cpcg-verify-form input[type="text"]::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.helper-text {
    display: block;
    margin-top: 0.5em;
    font-size: 0.85em;
    color: #7f8c8d;
    font-style: italic;
}

.cpcg-form input[type="text"]:focus,
.cpcg-form input[type="date"]:focus,
.cpcg-form input[type="number"]:focus,
.cpcg-verify-form input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: #fff;
    transform: translateY(-1px);
}

.cpcg-message {
    padding: 1em 1.5em;
    border-radius: 8px;
    margin: 1em 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.cpcg-success {
    background: #f0fdf4;
    border: 1px solid #2ecc71;
    color: #27ae60;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.1);
}

.form-submit {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-top: 2em;
    justify-content: center;
}

.cpcg-submit-button,
.cpcg-download-button,
.cpcg-verify-form .button {
    background-color: #E6D4C300 !important;
    color: #111033 !important;
    padding: 0.8em 1.8em;
    border: 1px solid #111033 !important;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.08);
    font-family: 'Montserrat', sans-serif;
}
.cpcg-download-button{
padding-top: 6px;
padding-bottom:6px;
text-decoration: none  !important;
}
.cpcg-submit-button:hover,
.cpcg-download-button:hover,
.cpcg-verify-form:hover {
transform: scale(1.01);
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

/* Verification Form Specific Styles */
.cpcg-verify-wrapper .form-title {
    margin-bottom: 1.5em;
}

.cpcg-certificate-details {
    margin-top: 2em;
    padding: 2em;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.cpcg-error {
    background: #fef2f2;
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 1em 1.5em;
    border-radius: 8px;
    margin: 1em 0;
    font-size: 0.95em;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.1);
}

.certificate-status {
    display: inline-block;
    padding: 0.8em 1.5em;
    border-radius: 8px;
    margin: 1em auto;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.certificate-status.valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.1);
}

.certificate-status.expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

.cpcg-certificate-details table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5em;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cpcg-certificate-details th,
.cpcg-certificate-details td {
    padding: 1em 1.2em;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpcg-certificate-details th {
    background: #f1f3f5;
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpcg-certificate-details td {
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpcg-certificate-details tr:nth-child(even) {
    background: #f8f9fa;
}

.cpcg-certificate-details tr:hover {
    background: #f1f3f5;
}

@media (max-width: 768px) {
    .cpcg-certificate-form-wrapper,
    .cpcg-verify-wrapper {
        margin: 1.5em 1em;
        padding: 1.5em;
    }

    .form-submit {
        flex-direction: column;
        gap: 0.8em;
    }

    .cpcg-submit-button,
    .cpcg-download-button,
    .cpcg-verify-form .button {
        width: 100%;
        text-align: center;
    }

    .cpcg-certificate-details th,
    .cpcg-certificate-details td {
        padding: 0.8em 1em;
        font-size: 0.9em;
    }
    
    .certificate-status {
        max-width: 100%;
    }
}