/* --- Codexa Pin Courier Frontend Styles --- */

.cpc-container {
    margin: 20px 0;
}

/* Wrapper for the input field and button */
.cpc-form-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pincode input field styling */
#cpc_pincode_input {
    flex-grow: 1;
    height: 48px;
    padding: 10px 20px;
    border: 2px solid #dcd9ff;
    /* Light lavender border */
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    background-color: #fff;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

#cpc_pincode_input::placeholder {
    color: #888;
}

#cpc_pincode_input:focus {
    border-color: #BFBCFC;
}

/* Check button styling */
#cpc_check_button {
    height: 48px;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #e0dffc, #BFBCFC);
    color: #333;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#cpc_check_button:hover {
    background: linear-gradient(to right, #BFBCFC, #e0dffc);
    box-shadow: 0 4px 10px rgba(191, 188, 252, 0.5);
}

/* Result message area */
.pincode-result {
    margin-top: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    display: none;
    /* Controlled by JavaScript */
    font-weight: 500;
    font-size: 15px;
    border-left: 4px solid;
}

/*
   NOTE: The colors for the messages below are controlled by the 
   Color Picker settings in your admin dashboard. These are fallbacks.
*/
.pincode-result.success {
    background-color: #e5f5e5;
    color: #3c763d;
    border-color: #3c763d;
}

.pincode-result.error {
    background-color: #fdeaea;
    color: #a94442;
    border-color: #a94442;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cpc-form-wrapper {
        flex-direction: column;
    }

    #cpc_check_button,
    #cpc_pincode_input {
        width: 100%;
    }
}