.contact-one-response {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.contact-one-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-one-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-one-dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.contact-one-dropzone.dragover {
    border-color: #007cba;
    background-color: #e8f5fd;
}

.contact-one-file-list {
    margin-top: 10px;
    text-align: left;
}

.contact-one-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.contact-one-remove-file {
    color: #dc3232;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

/* Form Layout Styles */
.contact-one-form .form-group {
    margin-bottom: 15px;
}

.contact-one-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-one-form .required {
    color: #d63638;
    margin-left: 2px;
}

.contact-one-form input[type="text"],
.contact-one-form input[type="email"],
.contact-one-form input[type="tel"],
.contact-one-form input[type="url"],
.contact-one-form input[type="number"],
.contact-one-form textarea,
.contact-one-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
    background-color: #fff;
    color: #333;
}

.contact-one-form input:focus,
.contact-one-form textarea:focus,
.contact-one-form select:focus {
    border-color: #007cba;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 1px #007cba;
}

.contact-one-form button[type="submit"] {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    line-height: 2;
    height: auto;
    padding: 5px 20px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    transition: background .15s ease-in-out;
}

.contact-one-form button[type="submit"]:hover {
    background: #005177;
    border-color: #005177;
    color: #fff;
}

/* Fix for widefat class if used on frontend */
.contact-one-form .widefat {
    width: 100%;
}


/* Progress Bar */
.contact-one-progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 10px;
    display: none; /* Hidden by default */
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.contact-one-progress-bar {
    width: 0%;
    height: 20px;
    background-color: #dc3545; /* Start red */
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
    animation: contact-one-progress-bar-stripes 1s linear infinite;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.3s ease, background-color 0.3s ease;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

@keyframes contact-one-progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.contact-one-field-error {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
}
.contact-one-has-error {
    border-color: #dc3232 !important;
}

/* Captcha refresh button sizing */
.contact-one-captcha-refresh {
    font-size: 12px;
    line-height: 1.4;
    padding: 2px 8px;
    height: auto;
}

.contact-one-captcha-image-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
}

.contact-one-captcha-image {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-one-captcha-refresh {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    padding: 4px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f6f7f7;
    color: #1d2327;
}

.contact-one-captcha-refresh:hover {
    background: #f0f0f1;
}
