/* GPL Times Contact Form v1.4.0 */

/* Main form styles */
.gpltimes_contact_custom_wrapper {
    max-width: 1230px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--soft-main-light, #f0e4eb);
}

.gpltimes_contact_custom_title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sec-color, #373b3f);
}

/* Form layout */
.gpltimes_contact_custom_form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 25px;
}

.gpltimes_contact_custom_field {
    margin-bottom: 0;
}

.gpltimes_contact_custom_field--full {
    grid-column: span 2;
}

.gpltimes_contact_custom_field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--sec-color, #373b3f);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.gpltimes_contact_custom_field input[type="text"],
.gpltimes_contact_custom_field input[type="email"],
.gpltimes_contact_custom_field input[type="number"],
.gpltimes_contact_custom_field textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
    box-sizing: border-box;
}

.gpltimes_contact_custom_field input[type="text"]:hover,
.gpltimes_contact_custom_field input[type="email"]:hover,
.gpltimes_contact_custom_field input[type="number"]:hover,
.gpltimes_contact_custom_field textarea:hover {
    border-color: #d5d5d5;
}

.gpltimes_contact_custom_field input[type="text"]:focus,
.gpltimes_contact_custom_field input[type="email"]:focus,
.gpltimes_contact_custom_field input[type="number"]:focus,
.gpltimes_contact_custom_field textarea:focus {
    border-color: var(--main-color, #BC5A94);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--soft-main-light, rgba(188, 90, 148, 0.15));
}

/* SVG Icons */
.gpltimes_contact_custom_icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    stroke: var(--main-color, #BC5A94);
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

.gpltimes_contact_custom_field label:hover .gpltimes_contact_custom_icon {
    transform: scale(1.1);
}

button .gpltimes_contact_custom_icon {
    stroke: white;
    margin-right: 10px;
}

/* Required field indicator */
.gpltimes_contact_custom_field .required {
    color: var(--main-color, #BC5A94);
    font-weight: bold;
    font-size: 1.2em;
    display: inline-block;
    margin-left: 3px;
    position: relative;
    top: 2px;
}

/* Turnstile */
.gpltimes_contact_custom_field--turnstile {
    min-height: 70px;
}

.gpltimes-turnstile-mount {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.gpltimes_contact_custom_wrapper .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gpltimes_contact_custom_response--static {
    margin-bottom: 0;
}

/* Response messages */
.gpltimes_contact_custom_response {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 14px;
    display: none;
    font-weight: 500;
    text-align: center;
    grid-column: span 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.gpltimes_contact_custom_response.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.2);
    display: block;
}

.gpltimes_contact_custom_response.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.2);
    display: block;
}

/* Submit button */
.gpltimes_contact_custom_submit_button {
    background: var(--main-color, #BC5A94);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 5px 38px;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 20px var(--soft-main, rgba(188, 90, 148, 0.25));
    overflow: hidden;
    z-index: 1;
    width: auto;
    letter-spacing: 0.5px;
}

.gpltimes_contact_custom_submit_button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.gpltimes_contact_custom_submit_button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--soft-main, rgba(188, 90, 148, 0.3));
    color: #ffffff;
}

.gpltimes_contact_custom_submit_button:hover::before {
    left: 100%;
}

.gpltimes_contact_custom_submit_button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px var(--soft-main, rgba(188, 90, 148, 0.25));
}

.gpltimes_contact_custom_submit_button:focus-visible {
    outline: 3px solid var(--main-color, #BC5A94);
    outline-offset: 3px;
}

/* Loading state */
.gpltimes_contact_custom_form.loading .gpltimes_contact_custom_submit_button {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive styles */
@media (max-width: 992px) {
    .gpltimes_contact_custom_wrapper {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .gpltimes_contact_custom_wrapper {
        padding: 25px 20px;
    }

    .gpltimes_contact_custom_form {
        grid-template-columns: 1fr;
    }

    .gpltimes_contact_custom_field,
    .gpltimes_contact_custom_field--full,
    .gpltimes_contact_custom_response {
        grid-column: span 1;
    }

    .gpltimes_contact_custom_field input[type="text"],
    .gpltimes_contact_custom_field input[type="email"],
    .gpltimes_contact_custom_field input[type="number"],
    .gpltimes_contact_custom_field textarea {
        padding: 14px 16px;
    }

    .gpltimes_contact_custom_submit_button {
        padding: 5px 38px;
    }
}

@media (max-width: 480px) {
    .gpltimes_contact_custom_wrapper {
        padding: 20px 15px;
    }
}
