/* Form Container */
.pl-form-to-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Form Inputs - these will be inserted inline */
.pl-form-to-input,
.pl-form-to-textbox {
    /* Hide original placeholder text when transformed */
    display: none;
}

.pl-form-input {
    width: 100%;
    padding: 12px 0px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-family: 'Euclid Circular B', sans-serif;
    font-size: 14px;
    background-color: transparent;
    transition: border-bottom-color 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    outline: none;
}

.pl-form-input:focus {
    outline: none;
    border-bottom-color: #666;
}

.pl-form-input::placeholder {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* Textarea specific styling */
.pl-form-input.textarea {
    min-height: 50px;
    max-height: 400px;
    resize: vertical;
    font-family: 'Euclid Circular B', sans-serif;
    line-height: 1.4;
}

/* Form validation styles */
.pl-form-input.error {
    border-bottom-color: #e74c3c;
}

/* Success message */
.pl-form-success {
    color: #27ae60;
    background-color: #d5f4e6;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Loading state */
.pl-form-submit.loading {
    background-color: #95a5a6;
    cursor: not-allowed;
    pointer-events: none;
}

.pl-form-submit.loading::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pl-form-to-form {
        padding: 1.5rem;
    }

    .pl-form-input {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}