/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.logo-block {
    margin-bottom: 30px;
    text-align: center;
}

.logo-image {
    max-width: 100%;
    height: auto;
}

.input-box {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 5px;
    background: rgba(240, 241, 248, 0.5);
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-row .half-width {
    flex: 1;
}

.message-box textarea {
    min-height: 120px;
    resize: vertical;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.captcha-inputs {
    display: flex;
    gap: 20px;
}

.captcha-digit {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 20px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 5px;
    background: rgba(240, 241, 248, 0.5);
}

.captcha-code {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 20px;
    user-select: none;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.refresh-captcha {
    width: 40px;
    height: 43px;
    background: #4A90E2;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.refresh-captcha:hover {
    background: #357ABD;
    transform: rotate(180deg);
}

/* Добавьте стили для активного состояния кнопки */
.refresh-captcha:active {
    transform: scale(0.95);
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btnCreateTicket {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btnCreateTicket:hover {
    background: linear-gradient(135deg, #357ABD, #2A6298);
    transform: translateY(-1px);
}

.close-form {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    cursor: pointer;
}

.error-message {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 5px;
    border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    input, textarea, .btnCreateTicket {
        font-size: 16px;
    }

    .contact-row {
        gap: 10px;
    }

    .captcha-digit {
        width: 45px;
        height: 45px;
    }

    .captcha-code {
        width: min-content;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .content {
        padding: 15px;
    }

    .contact-row {
        flex-direction: column;
        gap: 15px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-wrapper {
        
        justify-content: center;

    }

    .captcha-inputs {
        justify-content: center;
    }
}