/* Permit Checker Styles */
.psc-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
}

/* Custom Font for Input Field Only - FIXED PATH */
@font-face {
    font-family: 'CharlesWright-Bold';
    src: url('/tawasul_site/wp-content/themes/astra/assets/fonts/CharlesWright-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Remove the additional @font-face declarations that are causing 404 errors */
/* Only keep the OTF version since that's the file you have */

.psc-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.psc-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.psc-form {
    margin-bottom: 20px;
}
.psc-plate-emblem-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin-bottom: 2px;
}
.psc-plate-emblem-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}


.psc-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

/* UAE Plate Style */
.psc-plate-container {
    display: flex;
    flex: 1;
    background: #ffffff;
    border: 3px solid #000000; /* Red border like UAE plate */
    border-radius: 8px;
    overflow: hidden;
    height: 47px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.psc-plate-left {
      display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    padding: 0 15px;
    min-width: 100px;
    color: #000000;
    font-weight: bold;
	border-right: 3px solid black;
}

.psc-plate-emblem {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: center;
    line-height: 1.2;
}

.psc-plate-region {
 font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.psc-plate-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0px !important;
}

.psc-plate-input {
    width: 100% !important;
    height: 100% !important;
    border: none;
    background: transparent;
    font-size: 32px !important;
    font-weight: 800 !important;
    text-align: center;
    letter-spacing: 5px;
    color: #000000 !important;
    padding: 0px !important;
    outline: none;
    /* Make sure !important is used to override any other styles */
    font-family: 'CharlesWright-Bold', 'Arial Black', 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
}

.psc-plate-input::placeholder {
    color: #999;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: normal;
    /* Keep placeholder in default font */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.psc-plate-input:focus {
    background: #f9f9f9;
    box-shadow: inset 0 0 5px rgba(0,124,186,0.3);
}

/* Search icon for button */
.psc-button {
    position: relative;
/*     padding: 12px 25px 12px 50px !important; */
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 47px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Update placeholder to use the same font */
.psc-plate-input::placeholder {
    color: #999;
    font-size: 20px !important; /* Match input font size */
    font-weight: 800 !important;
    letter-spacing: 5px;
    /* Apply the same font family as input */
    font-family: 'CharlesWright-Bold', 'Arial Black', 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
    opacity: 0.7; /* Slightly transparent to differentiate placeholder */
}

/* For WebKit browsers (Chrome, Safari, newer Edge) */
.psc-plate-input::-webkit-input-placeholder {
    color: #999;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 5px;
    font-family: 'CharlesWright-Bold', 'Arial Black', 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
    opacity: 0.7;
}

/* For Mozilla Firefox */
.psc-plate-input::-moz-placeholder {
    color: #999;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 5px;
    font-family: 'CharlesWright-Bold', 'Arial Black', 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
    opacity: 0.7;
}

/* For Microsoft Edge */
.psc-plate-input::-ms-input-placeholder {
    color: #999;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 5px;
    font-family: 'CharlesWright-Bold', 'Arial Black', 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
    opacity: 0.7;
}

/* For newer Edge (Chromium-based) */
.psc-plate-input::placeholder {
    color: #999;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 5px;
    font-family: 'CharlesWright-Bold', 'Arial Black', 'Segoe UI', sans-serif !important;
    text-transform: uppercase;
    opacity: 0.7;
}

.psc-button:hover {
    background: #54b435;
}

.psc-help {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* Loading spinner */
.psc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: psc-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes psc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.psc-results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    margin-top: 20px;
}

.psc-results h4 {
    margin-top: 0;
    color: #333;
}

.psc-results table {
    width: 100%;
    border-collapse: collapse;
}

.psc-results th {
    text-align: left;
    padding: 0px;
    color: #000000;
    width: 30%;
    font-size: small;
    border: none;
}

.psc-results td {
    padding: 0px;
    color: #333;
    font-size: small;
    border: none;
}

.psc-results tr {
    border: none !important;
}

.psc-results tr:last-child {
    border-bottom: none;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.status-active {
    background: #28a745;
}

.status-expiring {
    background: #ffc107;
    color: #333;
}

.status-expired {
    background: #dc3545;
}

/* Error */
.psc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .psc-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .psc-plate-container {
        width: 100%;
        height: 55px;
    }
    
    .psc-plate-left {
        min-width: 90px;
        padding: 0 10px;
    }
    
    .psc-plate-emblem {
        font-size: 12px;
    }
    
    .psc-plate-region {
        font-size: 14px;
    }
    
    .psc-plate-input {
        font-size: 28px !important;
        letter-spacing: 3px;
    }
    
/*     .psc-button {
        width: 100%;
        height: 50px;
    } */
	
	/* Search icon for the button */
.psc-button {
    position: relative;
    padding-left: 45px !important; /* Make room for the icon */
}


}

@media (max-width: 480px) {
    .psc-plate-container {
        height: 47px;
    }
    
    .psc-plate-left {
        min-width: 80px;
        padding: 0 8px;
    }
    
    .psc-plate-emblem {
        font-size: 11px;
    }
    
    .psc-plate-region {
        font-size: 13px;
    }
    
    .psc-plate-input {
        font-size: 24px !important;
        letter-spacing: 2px;
    }
}