/* Стили для страницы "Присоединиться" */

.join-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.join-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.join-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.subscription-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.subscription-container {
    max-width: 1000px;
    margin: 0 auto;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.subscription-plan {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscription-plan:hover {
    transform: translateY(-5px);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.plan-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 0.5rem;
}

.plan-period {
    color: #666;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features i {
    color: #28a745;
}

.plan-features .disabled {
    color: #ccc;
}

.plan-features .disabled i {
    color: #ccc;
}

.plan-recommended {
    position: absolute;
    top: 0;
    right: 0;
    background: #f72585;
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom-left-radius: 10px;
}

.form-section {
    padding: 5rem 0;
    background-color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4361ee;
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    margin: 2rem 0;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option {
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-label:hover {
    border-color: #4361ee;
    background-color: #f8f9ff;
}

.payment-option input:checked + .payment-label {
    border-color: #4361ee;
    background-color: #f8f9ff;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.payment-price {
    color: #4361ee;
    font-weight: 700;
    font-size: 1.2rem;
}

.payment-desc {
    color: #666;
    font-size: 0.9rem;
}

.security-info {
    background: #e7f5ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-info i {
    font-size: 2rem;
    color: #0066cc;
}

.security-text h4 {
    margin: 0 0 0.5rem;
    color: #0066cc;
}

.security-text p {
    margin: 0;
    color: #0066cc;
    opacity: 0.9;
}

.advanced-security {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #28a745;
}

.advanced-security h4 {
    margin: 0 0 0.5rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advanced-security ul {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
    color: #666;
}

.advanced-security li {
    margin-bottom: 0.25rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-subscribe {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.btn-subscribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.terms {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.terms a {
    color: #4361ee;
    text-decoration: none;
    cursor: pointer;
}

.terms a:hover {
    text-decoration: underline;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body-content {
    line-height: 1.6;
    color: #333;
}

.modal-body-content h1,
.modal-body-content h2,
.modal-body-content h3,
.modal-body-content h4 {
    color: #4361ee;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.modal-body-content h2 {
    font-size: 1.5rem;
}

.modal-body-content h3 {
    font-size: 1.3rem;
}

.modal-body-content p {
    margin-bottom: 1rem;
}

.modal-body-content ul,
.modal-body-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body-content li {
    margin-bottom: 0.5rem;
}

.modal-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.modal-body-content th,
.modal-body-content td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.modal-body-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.modal-body-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.modal-body-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.modal-body-content blockquote {
    border-left: 4px solid #4361ee;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
    color: #666;
}

.modal-footer {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.btn-modal-close {
    background: #4361ee;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-modal-close:hover {
    background: #3a0ca3;
}

/* Адаптивность модальных окон */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .join-hero h1 {
        font-size: 2.2rem;
    }
    
    .join-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .subscription-plan {
        padding: 2rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}