* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f5f7fa;
    color: #333;
    padding: 0 20px;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}
.document-preview {
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.signatureIframeContainer{
    height: 50vh;
}
#signatureIframeContainer{
    height: 50vh;
}
.signature-form .form-group {
    margin-bottom: 1.25rem;
}
.signature-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.signature-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
.signature-form button {
    width: 100%;
    padding: 0.85rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.signature-form button:hover:not(:disabled) {
    background: #2980b9;
}
.signature-form button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}
.result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}
.result.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.result.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.result a {
    color: #1c7430;
    text-decoration: underline;
}
.section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.pay-button {
    width: 100%;
    padding: 0.85rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pay-button:hover:not(:disabled) {
    background: #27ae60;
}
.pay-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

@media (max-width: 700px){
    body{
        padding: 0px;
    }
    .container{
        max-width: 100%;
    }
}

/* Логотип */
.logo-container {
    /*text-align: center;*/
    margin-bottom: 1.5rem;
}

.company-logo {
    max-width: 240px;
    height: auto;
    /* Если логотип тёмный на белом фоне — можно добавить тень для выделения */
    /* filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); */
}

/* Адаптивность на мобильных */
@media (max-width: 600px) {
    .logo-container {
        text-align: center;
    }
    .company-logo {
        max-width: 180px;
    }
    .container {
        padding: 1.5rem;
    }
}