/* ================================
   SEAL REQUEST FORM STYLES
   ================================ */

/* Wrapper */
.seal-request-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Form */
.seal-request-form {
    background: #fff;
    border-radius: 12px;
    padding: 0;
}

/* Section */
.seal-form-section {
    margin-bottom: 32px;
}

.seal-form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Rows */
.seal-form-row {
    margin-bottom: 20px;
}

.seal-form-row:last-child {
    margin-bottom: 0;
}

.seal-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Fields */
.seal-form-field {
    display: flex;
    flex-direction: column;
}

.seal-form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.seal-form-field label .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* Inputs */
.seal-form-field input[type="text"],
.seal-form-field input[type="tel"],
.seal-form-field input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 48px;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.seal-form-field select {
    width: 100%;
    height: 48px;
    padding: 12px 45px 12px 16px;
    font-size: 15px;
    line-height: normal;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
}

.seal-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

/* Hover and Focus */
.seal-form-field input:hover,
.seal-form-field select:hover,
.seal-form-field textarea:hover {
    border-color: #c0c0c0;
}

.seal-form-field input:focus,
.seal-form-field select:focus,
.seal-form-field textarea:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: none !important;
}

.seal-form-field input::placeholder,
.seal-form-field textarea::placeholder {
    color: #999;
}

/* Select option */
.seal-form-field select option {
    color: #333;
    background: #fff;
    padding: 10px;
}

/* Submit button */
.seal-form-submit-row {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.seal-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.seal-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: none;
    box-shadow: none;
}

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

.seal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.seal-btn-arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.seal-submit-btn:hover .seal-btn-arrow {
    transform: translateX(4px);
}

/* Spinner */
.seal-spinner {
    width: 20px;
    height: 20px;
    animation: seal-rotate 1s linear infinite;
}

.seal-spinner circle {
    stroke: #fff;
    stroke-linecap: round;
    animation: seal-dash 1.5s ease-in-out infinite;
}

@keyframes seal-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes seal-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ================================
   SUCCESS MODAL
   ================================ */

.seal-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.seal-success-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: seal-modal-appear 0.4s ease;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

@keyframes seal-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Success icon */
.seal-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.seal-success-icon svg {
    width: 100%;
    height: 100%;
}

.seal-success-icon circle {
    stroke: #2563eb;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: seal-circle 0.6s ease-in-out forwards;
}

.seal-success-icon path {
    stroke: #2563eb;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: seal-check 0.3s ease-in-out 0.4s forwards;
}

@keyframes seal-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes seal-check {
    to {
        stroke-dashoffset: 0;
    }
}

/* Modal text */
.seal-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.seal-success-text {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.seal-success-text strong {
    color: #2563eb;
}

.seal-success-subtext {
    font-size: 14px;
    color: #666;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

/* Modal button */
.seal-success-btn {
    display: inline-block;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.seal-success-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: none;
    box-shadow: none;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .seal-request-form-wrapper {
        padding: 15px;
    }
    
    .seal-form-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .seal-form-submit-row {
        justify-content: stretch;
    }
    
    .seal-submit-btn {
        width: 100%;
    }
    
    .seal-success-modal-content {
        padding: 40px 25px;
    }
    
    .seal-success-title {
        font-size: 24px;
    }
    
    .seal-success-icon {
        width: 70px;
        height: 70px;
    }
}

/* Validation errors */
.seal-form-field.has-error input {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
}

.seal-form-field.has-error input:focus {
    box-shadow: none !important;
}

.seal-error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 400;
}

/* Consent checkboxes and labels */
.seal-consent-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.seal-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.seal-consent-row input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2563eb; /* Синий чекбокс */
}

.seal-consent-row label {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.seal-consent-row label a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.15s;
}

.seal-consent-row label a:hover {
    color: #1d4ed8;
}