/* WP Forms Custom Styling to Match Original Design */

/* Main form container */
.wpforms-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.wpforms-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Form groups styling */
.wpforms-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.wpforms-field:last-child {
    margin-bottom: 0;
}

/* Form labels */
.wpforms-field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.wpforms-required {
    color: #e74c3c;
    margin-left: 2px;
}

/* Form inputs */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field select,
.wpforms-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field input[type="tel"]:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Select dropdown styling */
.wpforms-field select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='m2 0-2 2h4zm0 5 2-2h-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Textarea specific styling */
.wpforms-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Name field styling (if using compound name field) */
.wpforms-field-name .wpforms-field-row {
    display: flex;
    gap: 10px;
}

.wpforms-field-name .wpforms-field-row .wpforms-field-sublabel {
    display: none;
}

/* File upload styling */
.wpforms-field-file-upload {
    position: relative;
}

.wpforms-field-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.wpforms-field-file-upload .wpforms-field-file-upload-container {
    position: relative;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpforms-field-file-upload .wpforms-field-file-upload-container:hover {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.wpforms-field-file-upload .wpforms-field-file-upload-container::before {
    content: "📄";
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wpforms-field-file-upload .wpforms-field-file-upload-container::after {
    content: "Choose CV or drag here";
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.wpforms-field-file-upload .wpforms-field-description {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #718096;
    margin: 0;
}

/* Custom submit button styling */
.wpforms-submit-container {
    margin-top: 2rem;
    text-align: left;
}

.wpforms-submit {
    background-color: #333 !important; 
    border: none;
    border-radius: 50px;
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.wpforms-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.wpforms-submit:active {
    transform: translateY(0);
}

.wpforms-submit::after {
    content: "➔";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #2fc178;
    border-radius: 50%;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.wpforms-submit:hover::after {
    transform: translateX(4px);
}

/* Error styling */
.wpforms-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 0.25rem;
}

.wpforms-field.wpforms-has-error input,
.wpforms-field.wpforms-has-error select,
.wpforms-field.wpforms-has-error textarea {
    border-color: #e74c3c;
}

/* Success message styling */
.wpforms-confirmation-container-full {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Loading state */
.wpforms-submit.wpforms-submit-spinner {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .wpforms-field input[type="text"],
    .wpforms-field input[type="email"],
    .wpforms-field input[type="tel"],
    .wpforms-field select,
    .wpforms-field textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .wpforms-field-name .wpforms-field-row {
        flex-direction: column;
        gap: 15px;
    }

    .wpforms-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Optional: Container to match original layout */
.contact-content.single-form .wpforms-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* Hide WP Forms branding if desired */
.wpforms-field-hp {
    display: none !important;
}