/**
 * SRZ Rada - Contact Form Frontend Styles
 *
 * @package Srz_Rada
 * @since 1.0.0
 */

/* ========================================
   Inline Contact Form (Shortcode)
   ======================================== */

.srz-contact-inline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.srz-contact-inline-header {
    text-align: center;
    margin-bottom: 24px;
}

.srz-contact-inline-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.srz-contact-inline-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* Form Row */
.srz-contact-inline .srz-form-row {
    margin-bottom: 16px;
}

/* Labels */
.srz-contact-inline label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.srz-contact-inline label .required {
    color: #dc2626;
}

/* Inputs */
.srz-contact-inline input[type="text"],
.srz-contact-inline input[type="email"],
.srz-contact-inline textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.srz-contact-inline input:focus,
.srz-contact-inline textarea:focus {
    outline: none;
    border-color: #018763;
    box-shadow: 0 0 0 3px rgba(1, 135, 99, 0.15);
}

.srz-contact-inline textarea {
    resize: vertical;
    min-height: 120px;
}

/* Error State */
.srz-contact-inline input.has-error,
.srz-contact-inline textarea.has-error {
    border-color: #dc2626;
}

.srz-contact-inline .field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* Submit Button */
.srz-contact-inline .srz-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.srz-contact-inline .srz-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 135, 99, 0.3);
}

.srz-contact-inline .srz-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Message Box */
.srz-contact-inline .srz-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.srz-contact-inline .srz-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.srz-contact-inline .srz-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Spinner Animation */
.srz-contact-inline .spinner {
    animation: srz-contact-spin 1s linear infinite;
}

@keyframes srz-contact-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   Modal Contact Form
   ======================================== */

.srz-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.srz-contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.srz-contact-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.srz-contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.srz-contact-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.srz-contact-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.srz-contact-modal-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.srz-contact-modal-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* Modal Form Rows */
.srz-contact-modal .srz-form-row {
    margin-bottom: 16px;
}

.srz-contact-modal label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.srz-contact-modal label .required {
    color: #dc2626;
}

.srz-contact-modal input[type="text"],
.srz-contact-modal input[type="email"],
.srz-contact-modal textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.srz-contact-modal input:focus,
.srz-contact-modal textarea:focus {
    outline: none;
    border-color: #018763;
    box-shadow: 0 0 0 3px rgba(1, 135, 99, 0.15);
}

.srz-contact-modal textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modal Error State */
.srz-contact-modal input.has-error,
.srz-contact-modal textarea.has-error {
    border-color: #dc2626;
}

.srz-contact-modal .field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* Modal Submit Button */
.srz-contact-modal .srz-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.srz-contact-modal .srz-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 135, 99, 0.3);
}

.srz-contact-modal .srz-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.srz-contact-modal .srz-submit-btn.is-loading {
    pointer-events: none;
}

/* Modal Message Box */
.srz-contact-modal .srz-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.srz-contact-modal .srz-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.srz-contact-modal .srz-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Body class when modal is open */
body.srz-modal-open {
    overflow: hidden;
}
