#registration-form {
    max-width: 950px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow:
            0 20px 50px rgba(0,0,0,.08),
            0 6px 20px rgba(0,0,0,.04);
    font-family: Arial, sans-serif;
}

#registration-form h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: #222;
    font-weight: 700;
}

#registration-form .form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#registration-form .form-group {
    position: relative;
    width: calc(33.333% - 14px);
}

#registration-form .form-group.full-width,
#registration-form .phone-group {
    width: 100%;
}

#registration-form .form-group.country-group {
    width: calc(33.333% - 14px);
}

#registration-form input,
#registration-form select {
    width: 100%;
    height: 56px;
    padding: 22px 16px 8px;
    border: 1px solid #dcdfe5;
    border-radius: 14px;
    background: #fafbfc;
    font-size: 15px;
    transition: all .25s ease;
    box-sizing: border-box;
}

#registration-form input:hover,
#registration-form select:hover {
    border-color: rgba(116, 0, 0, 0.35);
    background: #fff;
}

#registration-form input:focus,
#registration-form select:focus {
    outline: none;
    border-color: #740000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(116, 0, 0, .12);
}

#registration-form label {
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 15px;
    color: #777;
    pointer-events: none;
    transition: .2s ease;
}

#registration-form input:focus + label,
#registration-form input:not(:placeholder-shown) + label,
#registration-form select:focus + label,
#registration-form select:valid + label {
    top: 7px;
    font-size: 11px;
    color: #740000;
    font-weight: 700;
}

#registration-form .error {
    display: block;
    margin-top: 8px;
    padding-left: 4px;
    color: #d93025;
    font-size: 12px;
    font-weight: 600;
}

#registration-form input.error-field,
#registration-form select.error-field {
    border-color: #d93025;
    background: #fff4f4;
}

#registration-form .input-wrapper {
    position: relative;
}

#registration-form .togglePassword {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: .2s ease;
}

#registration-form .togglePassword:hover {
    color: #740000;
}

#registration-form .phone-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#registration-form .phone-wrapper select {
    width: 140px;
    flex-shrink: 0;
    height: 56px;
    border: 1px solid #dcdfe5;
    border-radius: 14px;
    background: #fafbfc;
    font-size: 14px;
    padding: 0 10px;
}

#registration-form .phone-input {
    position: relative;
    flex: 1;
}

#registration-form .phone-input input {
    width: 100%;
}

#registration-form .phone-input label {
    position: absolute;
    left: 16px;
    top: 18px;
    pointer-events: none;
    transition: .2s ease;
}

#registration-form .phone-input input:focus + label,
#registration-form .phone-input input:not(:placeholder-shown) + label {
    top: 7px;
    font-size: 11px;
    color: #740000;
    font-weight: 700;
}

#registration-form .submit-group {
    width: 100%;
    margin-top: 20px;
}

#registration-form .social-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#registration-form .submit-group button {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #740000, #a30000);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
    box-shadow: 0 10px 24px rgba(116,0,0,.25);
}

#registration-form .submit-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(116,0,0,.35);
}

#registration-form .submit-group button:active {
    transform: translateY(0);
}

#registration-form button[type="submit"] {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #740000, #a30000);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
    box-shadow: 0 10px 24px rgba(116,0,0,.25);
}

#registration-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(116,0,0,.35);
}

#registration-form button[type="submit"]:active {
    transform: translateY(0);
}

#registration-form .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    border: 1px solid #dcdfe5;
    border-radius: 14px;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    text-decoration: none;
}

#registration-form .google-btn img {
    width: 18px;
    height: 18px;
}

#registration-form .google-btn:hover {
    background: #f7f7f7;
    border-color: #bbb;
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    #registration-form {
        width: 90%;
    }
}

@media (max-width: 900px) {
    #registration-form .form-group {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    #registration-form {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
        box-sizing: border-box;
    }

    #registration-form .form-group {
        width: 100%;
    }

    #registration-form .phone-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    #registration-form .phone-wrapper select {
        width: 100%;
    }

    #registration-form h2 {
        font-size: 26px;
    }

    #registration-form .social-login {
        flex-direction: column;
        gap: 12px;
    }

    #registration-form .social-login > * {
        width: 100%;
    }

    #registration-form #country {
        width: 100%;
        height: 52px;
        font-size: 14px;
    }
}