/**
 * Holding Contact - Form Styles
 *
 * @package HoldingContact
 * @since 1.0.0
 */

/* Form Wrapper */
.holding-contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.holding-contact-form-title {
    font-family: monospace;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

/* Form */
.holding-contact-form {
    background: #fff;
    border: 1px solid #000;
    padding: 30px;
}

/* Messages */
.holding-contact-form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid;
    display: none;
}

.holding-contact-form-messages.success {
    display: block;
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.holding-contact-form-messages.error {
    display: block;
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Fields */
.holding-contact-field {
    margin-bottom: 20px;
}

.holding-contact-field label {
    display: block;
    font-family: monospace;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.holding-contact-field .required {
    color: #d63638;
}

.holding-contact-field input[type="text"],
.holding-contact-field input[type="email"],
.holding-contact-field select,
.holding-contact-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #000;
    font-family: inherit;
    font-size: 14px;
    background: #f0f0f0;
    transition: background 0.2s;
}

.holding-contact-field input[type="text"]:focus,
.holding-contact-field input[type="email"]:focus,
.holding-contact-field select:focus,
.holding-contact-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #000;
}

.holding-contact-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.holding-contact-field textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Submit Button */
.holding-contact-submit {
    width: 100%;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.holding-contact-submit:hover {
    background: #fff;
    color: #000;
}

.holding-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.holding-contact-submit.loading {
    position: relative;
}

.holding-contact-submit.loading::after {
    content: '...';
    position: absolute;
    right: 20px;
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Responsive */
@media (max-width: 768px) {
    .holding-contact-form {
        padding: 20px;
    }

    .holding-contact-form-title {
        font-size: 20px;
    }
}